Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor",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.001335/0.001335, allocations: 115 kB / 16.63 MB, free: 6.812 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.001245/0.001245, allocations: 186 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1805/0.1805, allocations: 38.04 MB / 329.4 MB, free: 9.039 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 68.38 kB / 398.4 MB, free: 34.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08703/0.08825, allocations: 58.07 MB / 456.5 MB, free: 8.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.007551/0.09586, allocations: 5.147 MB / 461.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002819/0.0987, allocations: 1.581 MB / 463.2 MB, free: 1.566 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004607/0.09919, allocations: 23.88 kB / 463.2 MB, free: 1.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009405/0.1002, allocations: 282.9 kB / 463.5 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007472/0.1009, allocations: 258.9 kB / 463.7 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007665/0.1017, allocations: 231.6 kB / 464 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008849/0.1026, allocations: 0.6703 MB / 464.6 MB, free: 112 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005341/0.1032, allocations: 256.3 kB / 464.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007156/0.1039, allocations: 290.9 kB / 465.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008658/0.1048, allocations: 434.7 kB / 465.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001219/0.1049, allocations: 44 kB / 465.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000471/0.1054, allocations: 235.6 kB / 465.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002476/0.1056, allocations: 247.3 kB / 466.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003372/0.106, allocations: 290.6 kB / 466.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008231/0.1068, allocations: 0.7476 MB / 467.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1068, allocations: 0 / 467.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1068, allocations: 0 / 467.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.635e-05/0.1069, allocations: 3.938 kB / 467.2 MB, free: 13.59 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.00183/0.1087, allocations: 0.8845 MB / 468 MB, free: 12.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.1088, allocations: 11.89 kB / 468 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001247/0.1089, allocations: 102.7 kB / 468.1 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005693/0.1095, allocations: 92.14 kB / 468.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005905/0.1101, allocations: 412 kB / 468.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.1101, allocations: 33.36 kB / 468.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.184e-05/0.1102, allocations: 43.84 kB / 468.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.1114, allocations: 0.8629 MB / 469.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.1115, allocations: 0 / 469.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.452e-05/0.1115, allocations: 23.98 kB / 469.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001311/0.1117, allocations: 56.95 kB / 469.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.1128, allocations: 0.7963 MB / 470.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003751/0.1166, allocations: 2.741 MB / 473.2 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008243/0.1174, allocations: 0.5759 MB / 473.8 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005707/0.118, allocations: 454.7 kB / 474.2 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.152e-05/0.118, allocations: 4 kB / 474.2 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/0.1181, allocations: 38.56 kB / 474.3 MB, free: 6.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 4.227e-06/0.1181, allocations: 0 / 474.3 MB, free: 6.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.002888/0.121, allocations: 1.879 MB / 476.1 MB, free: 4.242 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.1211, allocations: 142.8 kB / 476.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003066/0.1214, allocations: 292.4 kB / 476.6 MB, free: 3.785 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.212e-05/0.1215, allocations: 37.69 kB / 476.6 MB, free: 3.742 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001813/0.1217, allocations: 260.2 kB / 476.8 MB, free: 3.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/0.1218, allocations: 185.3 kB / 477 MB, free: 3.297 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001674/0.122, allocations: 106 kB / 477.1 MB, free: 3.188 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.1222, allocations: 350.9 kB / 477.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004548/0.1226, allocations: 348.8 kB / 477.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005076/0.1231, allocations: 477.8 kB / 478.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.1243, allocations: 0.9877 MB / 479.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.1243, allocations: 0 / 479.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001456/0.1258, allocations: 0.9805 MB / 480.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.054e-05/0.1259, allocations: 77.59 kB / 480.3 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.1259, allocations: 4 kB / 480.3 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001922/0.1261, allocations: 41.39 kB / 480.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003487/0.1264, allocations: 91.83 kB / 480.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/0.1277, allocations: 1.551 MB / 482 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003452/0.1281, allocations: 27.97 kB / 482 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.234e-05/0.1282, allocations: 27.94 kB / 482.1 MB, free: 13.95 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1],system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003514/0.1285, allocations: 311.2 kB / 482.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.1286, allocations: 39.53 kB / 482.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001464/0.1301, allocations: 1.076 MB / 483.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-05/0.1301, allocations: 11.98 kB / 483.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.1301, allocations: 8 kB / 483.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.1302, allocations: 0 / 483.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00237/0.1325, allocations: 1.8 MB / 485.3 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1325, allocations: 4.062 kB / 485.3 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000256/0.1328, allocations: 55.91 kB / 485.4 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.965e-05/0.1329, allocations: 36.83 kB / 485.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.158e-05/0.133, allocations: 12 kB / 485.4 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001128/0.1341, allocations: 1.543 MB / 487 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.1341, allocations: 4.031 kB / 487 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001406/0.1355, allocations: 1.179 MB / 488.1 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002118/0.1358, allocations: 176.5 kB / 488.3 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.797e-05/0.1358, allocations: 12 kB / 488.3 MB, free: 7.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002584/0.1361, allocations: 35.94 kB / 488.4 MB, free: 7.352 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.1362, allocations: 43.89 kB / 488.4 MB, free: 7.309 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.303e-05/0.1363, allocations: 20 kB / 488.4 MB, free: 7.289 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001762/0.1364, allocations: 203.1 kB / 488.6 MB, free: 7.094 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1365, allocations: 0 / 488.6 MB, free: 7.094 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005268/0.137, allocations: 140 kB / 488.8 MB, free: 6.957 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,voltage.h_mod3[1],voltage.h_mod3[2],voltage.h_mod3[3]) * Number of discrete states: 3 (voltage.h_mod3[3],voltage.h_mod3[2],voltage.h_mod3[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001795/0.1388, allocations: 1.769 MB / 490.5 MB, free: 5.145 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001793/0.1406, allocations: 1.495 MB / 492 MB, free: 3.621 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1406, allocations: 0 / 492 MB, free: 3.621 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009733/0.1416, allocations: 0.924 MB / 492.9 MB, free: 2.672 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005237/0.1421, allocations: 88.17 kB / 493 MB, free: 2.586 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007264/0.1494, allocations: 6.061 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005078/0.1499, allocations: 0.8976 MB / 500 MB, free: 11.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002952/0.1502, allocations: 103.2 kB / 0.4884 GB, free: 11.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002235/0.1505, allocations: 159.4 kB / 0.4885 GB, free: 11.13 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1505, allocations: 0 / 0.4885 GB, free: 11.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03413/0.1846, allocations: 10.01 MB / 0.4983 GB, free: 1.297 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002255/0.1849, allocations: 218.2 kB / 0.4985 GB, free: 1.047 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.946/2.131, allocations: 4.062 kB / 0.4985 GB, free: 1.043 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Sensor.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Sensor.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches