Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_OneBusImpedanceOneVariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_OneBusImpedanceOneVariableLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 193.5 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.729/1.729, allocations: 205.1 MB / 222.1 MB, free: 4.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06508/0.06508, allocations: 14.16 MB / 283.6 MB, free: 7.266 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 75.78 kB / 344.7 MB, free: 19.63 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09792/0.09934, allocations: 50.12 MB / 394.8 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad): time 0.007095/0.1065, allocations: 7.147 MB / 401.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005257/0.1118, allocations: 3.417 MB / 405.4 MB, free: 6.863 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006184/0.1124, allocations: 15.94 kB / 405.4 MB, free: 6.848 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009539/0.1134, allocations: 334.5 kB / 405.7 MB, free: 6.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003155/0.1166, allocations: 1.376 MB / 407.1 MB, free: 5.148 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005896/0.1172, allocations: 285.6 kB / 407.4 MB, free: 4.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002018/0.1192, allocations: 1.958 MB / 409.3 MB, free: 2.906 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002319/0.1195, allocations: 126.2 kB / 409.4 MB, free: 2.773 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006075/0.1201, allocations: 0.5717 MB / 410 MB, free: 2.199 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005559/0.1207, allocations: 0.5484 MB / 410.6 MB, free: 1.648 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.731e-05/0.1208, allocations: 48 kB / 410.6 MB, free: 1.602 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006518/0.1214, allocations: 327.8 kB / 410.9 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.489e-05/0.1215, allocations: 143.2 kB / 411.1 MB, free: 1.141 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004051/0.1219, allocations: 0.513 MB / 411.6 MB, free: 0.625 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001235/0.1232, allocations: 1.281 MB / 412.9 MB, free: 15.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1232, allocations: 0 / 412.9 MB, free: 15.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1232, allocations: 0 / 412.9 MB, free: 15.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.168e-06/0.1232, allocations: 0 / 412.9 MB, free: 15.34 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.003662/0.1269, allocations: 1.539 MB / 414.4 MB, free: 13.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.1269, allocations: 12.03 kB / 414.4 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001099/0.127, allocations: 106.7 kB / 414.5 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005235/0.1276, allocations: 155.6 kB / 414.7 MB, free: 13.47 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009563/0.1285, allocations: 0.6524 MB / 415.3 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.033e-05/0.1286, allocations: 46 kB / 415.4 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.431e-05/0.1287, allocations: 64 kB / 415.4 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.1297, allocations: 0.6746 MB / 416.1 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.1297, allocations: 0 / 416.1 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.13e-05/0.1298, allocations: 24 kB / 416.1 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.1298, allocations: 16 kB / 416.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.1308, allocations: 0.6427 MB / 416.8 MB, free: 11.29 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003715/0.1345, allocations: 4.086 MB / 420.9 MB, free: 6.664 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001593/0.1361, allocations: 1.156 MB / 422 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004726/0.1366, allocations: 273.6 kB / 422.3 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.604e-05/0.1367, allocations: 11.98 kB / 422.3 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.942e-05/0.1368, allocations: 46.5 kB / 422.4 MB, free: 5.043 MB / 318.1 MB Notification: Performance of pre-optimization done (n=78): time 2.865e-06/0.1368, allocations: 0 / 422.4 MB, free: 5.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=78): time 0.003871/0.1406, allocations: 1.427 MB / 423.8 MB, free: 3.566 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.647e-05/0.1407, allocations: 85.11 kB / 423.9 MB, free: 3.465 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005668/0.1413, allocations: 0.4952 MB / 424.4 MB, free: 2.961 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.154e-05/0.1413, allocations: 33.7 kB / 424.4 MB, free: 2.922 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002331/0.1416, allocations: 328.5 kB / 424.7 MB, free: 2.594 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002291/0.1418, allocations: 272 kB / 425 MB, free: 2.324 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001764/0.142, allocations: 122.6 kB / 425.1 MB, free: 2.199 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1422, allocations: 370.8 kB / 425.5 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003427/0.1425, allocations: 193.9 kB / 425.6 MB, free: 1.641 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003913/0.1429, allocations: 261.3 kB / 425.9 MB, free: 1.375 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007634/0.1437, allocations: 0.4954 MB / 426.4 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.1437, allocations: 4 kB / 426.4 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.1985/0.3422, allocations: 0.8509 MB / 427.3 MB, free: 37.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.304e-05/0.3423, allocations: 5.094 kB / 427.3 MB, free: 37.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.605e-05/0.3423, allocations: 2.578 kB / 427.3 MB, free: 37.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001572/0.3439, allocations: 288.8 kB / 427.5 MB, free: 37.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006619/0.3445, allocations: 125.3 kB / 427.7 MB, free: 37.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005326/0.3499, allocations: 4.191 MB / 431.9 MB, free: 34.87 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007372/0.3507, allocations: 56.5 kB / 431.9 MB, free: 34.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.608e-05/0.3507, allocations: 19.09 kB / 431.9 MB, free: 34.86 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,7), (3,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004/0.3511, allocations: 225.4 kB / 432.2 MB, free: 34.67 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002634/0.3514, allocations: 75.77 kB / 432.2 MB, free: 34.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002412/0.3538, allocations: 0.8898 MB / 433.1 MB, free: 34.3 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.3539, allocations: 10.72 kB / 433.1 MB, free: 34.3 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.948e-06/0.3539, allocations: 0.8438 kB / 433.1 MB, free: 34.3 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.3539, allocations: 4.531 kB / 433.1 MB, free: 34.3 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003675/0.3576, allocations: 2.112 MB / 435.2 MB, free: 32.99 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.3576, allocations: 0 / 435.2 MB, free: 32.99 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000482/0.3581, allocations: 114.9 kB / 435.4 MB, free: 32.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001177/0.3593, allocations: 279.2 kB / 435.6 MB, free: 32.92 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.672e-05/0.3593, allocations: 13.28 kB / 435.6 MB, free: 32.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004014/0.3634, allocations: 4.121 MB / 439.8 MB, free: 29.46 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3634, allocations: 1.062 kB / 439.8 MB, free: 29.46 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002048/0.3654, allocations: 1.023 MB / 440.8 MB, free: 28.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002635/0.3657, allocations: 205.7 kB / 441 MB, free: 28.76 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.862e-05/0.3658, allocations: 18.86 kB / 441 MB, free: 28.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004601/0.3663, allocations: 40.22 kB / 441 MB, free: 28.73 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/0.3664, allocations: 54.22 kB / 441.1 MB, free: 28.72 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.221e-05/0.3664, allocations: 21.22 kB / 441.1 MB, free: 28.71 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004076/0.3669, allocations: 347.6 kB / 441.5 MB, free: 28.55 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3669, allocations: 0 / 441.5 MB, free: 28.55 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008825/0.3678, allocations: 276.6 kB / 441.7 MB, free: 28.52 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,7), (3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002138/0.3699, allocations: 1.646 MB / 443.4 MB, free: 27.42 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001902/0.3718, allocations: 0.9122 MB / 444.3 MB, free: 26.96 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3718, allocations: 0 / 444.3 MB, free: 26.96 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.3729, allocations: 0.6648 MB / 445 MB, free: 26.56 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000722/0.3736, allocations: 100 kB / 445 MB, free: 26.51 MB / 318.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00975/0.3834, allocations: 6.107 MB / 451.2 MB, free: 22.98 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004048/0.3838, allocations: 0.9361 MB / 452.1 MB, free: 22.27 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000383/0.3842, allocations: 87.34 kB / 452.2 MB, free: 22.23 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002787/0.3845, allocations: 258.9 kB / 452.4 MB, free: 22.04 MB / 318.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3845, allocations: 0 / 452.4 MB, free: 22.04 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03112/0.4156, allocations: 17.55 MB / 470 MB, free: 7.316 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001698/0.4158, allocations: 236.9 kB / 470.2 MB, free: 7.055 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.257/2.673, allocations: 0 / 470.2 MB, free: 7.055 MB / 318.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_OneBusImpedanceOneVariableLoad_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_OneBusImpedanceOneVariableLoad.fmu > PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad_res.mat","../files/PowerGrids_PowerGrids.Electrical.Test.OneBusImpedanceOneVariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches