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.0008686/0.0008687, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.0009697/0.0009698, allocations: 182 kB / 17.56 MB, free: 6.203 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.258/1.258, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1627/0.1627, allocations: 38.1 MB / 330.8 MB, free: 8.527 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002993/0.0002993, allocations: 12 kB / 400.8 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09079/0.09111, allocations: 59.17 MB / 460 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.00516/0.09631, allocations: 4.764 MB / 464.7 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002289/0.09862, allocations: 1.601 MB / 466.3 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001933/0.09883, allocations: 23.81 kB / 466.4 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001989/0.09903, allocations: 59.55 kB / 466.4 MB, free: 488 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005264/0.09957, allocations: 266.9 kB / 466.7 MB, free: 220 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000516/0.1001, allocations: 231.6 kB / 466.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008589/0.101, allocations: 1.002 MB / 467.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006594/0.1016, allocations: 421 kB / 468.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002987/0.102, allocations: 235 kB / 468.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000512/0.1025, allocations: 414.7 kB / 469 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.19e-05/0.1025, allocations: 24 kB / 469 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003606/0.1029, allocations: 223.5 kB / 469.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001986/0.1031, allocations: 227.4 kB / 469.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002621/0.1034, allocations: 292.2 kB / 469.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006725/0.1041, allocations: 0.7046 MB / 470.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1041, allocations: 0 / 470.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1041, allocations: 0 / 470.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.1041, allocations: 0 / 470.4 MB, free: 12.45 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.001281/0.1054, allocations: 0.8026 MB / 471.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.1054, allocations: 8.031 kB / 471.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001161/0.1056, allocations: 94.69 kB / 471.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000523/0.1061, allocations: 88.23 kB / 471.4 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005875/0.1067, allocations: 412 kB / 471.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.017e-05/0.1067, allocations: 29.36 kB / 471.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.402e-05/0.1068, allocations: 43.94 kB / 471.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.108, allocations: 0.8668 MB / 472.7 MB, free: 9.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.108, allocations: 0 / 472.7 MB, free: 9.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.874e-05/0.1081, allocations: 20 kB / 472.8 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001359/0.1082, allocations: 64.88 kB / 472.8 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001121/0.1093, allocations: 0.8002 MB / 473.6 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003446/0.1128, allocations: 2.726 MB / 476.4 MB, free: 6.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007897/0.1136, allocations: 0.5798 MB / 476.9 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004806/0.1141, allocations: 450.7 kB / 477.4 MB, free: 5.172 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.145e-05/0.1141, allocations: 4 kB / 477.4 MB, free: 5.168 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.027e-05/0.1142, allocations: 38.5 kB / 477.4 MB, free: 5.121 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.996e-06/0.1142, allocations: 0 / 477.4 MB, free: 5.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.002672/0.1168, allocations: 1.898 MB / 479.3 MB, free: 3.184 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.202e-05/0.1169, allocations: 138.8 kB / 479.4 MB, free: 3.023 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002686/0.1172, allocations: 296.4 kB / 479.7 MB, free: 2.727 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.789e-05/0.1173, allocations: 29.7 kB / 479.8 MB, free: 2.691 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.1174, allocations: 260.2 kB / 480 MB, free: 2.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.1176, allocations: 197.1 kB / 480.2 MB, free: 2.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.24e-05/0.1176, allocations: 53.83 kB / 480.3 MB, free: 2.176 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1178, allocations: 354.8 kB / 480.6 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004209/0.1182, allocations: 340.9 kB / 480.9 MB, free: 1.488 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004967/0.1187, allocations: 481.8 kB / 481.4 MB, free: 0.957 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.1198, allocations: 0.976 MB / 482.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1198, allocations: 0 / 482.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001274/0.1211, allocations: 0.9844 MB / 483.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.406e-05/0.1212, allocations: 79.78 kB / 483.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.046e-06/0.1212, allocations: 4.562 kB / 483.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001578/0.1213, allocations: 44.83 kB / 483.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003092/0.1217, allocations: 87.83 kB / 483.6 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001091/0.1228, allocations: 1.441 MB / 485 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002761/0.1231, allocations: 31.95 kB / 485.1 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.433e-05/0.1231, allocations: 28 kB / 485.1 MB, free: 13.06 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.0003203/0.1234, allocations: 303.2 kB / 485.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.958e-05/0.1235, allocations: 39.53 kB / 485.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001456/0.125, allocations: 1.073 MB / 486.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.427e-05/0.125, allocations: 12 kB / 486.5 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.125, allocations: 11.86 kB / 486.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.1251, allocations: 0 / 486.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002247/0.1273, allocations: 1.796 MB / 488.3 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1273, allocations: 0 / 488.3 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002407/0.1276, allocations: 67.95 kB / 488.4 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.694e-05/0.1277, allocations: 32.83 kB / 488.4 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.459e-05/0.1277, allocations: 12 kB / 488.4 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001011/0.1287, allocations: 1.437 MB / 489.9 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.1287, allocations: 3.938 kB / 489.9 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001362/0.1301, allocations: 1.179 MB / 491 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001941/0.1303, allocations: 180.4 kB / 491.2 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.045e-05/0.1304, allocations: 16 kB / 491.2 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000245/0.1306, allocations: 27.95 kB / 491.3 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.1307, allocations: 43.94 kB / 491.3 MB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.596e-05/0.1308, allocations: 20 kB / 491.3 MB, free: 6.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001643/0.131, allocations: 203.1 kB / 491.5 MB, free: 6.324 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.131, allocations: 0 / 491.5 MB, free: 6.324 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004828/0.1315, allocations: 140 kB / 491.7 MB, free: 6.188 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.00176/0.1332, allocations: 1.771 MB / 493.4 MB, free: 4.371 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00151/0.1348, allocations: 1.371 MB / 494.8 MB, free: 2.977 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1348, allocations: 0 / 494.8 MB, free: 2.977 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000923/0.1357, allocations: 0.928 MB / 495.7 MB, free: 2.023 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005222/0.1362, allocations: 69 kB / 495.8 MB, free: 1.953 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006503/0.1428, allocations: 6.104 MB / 0.4901 GB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004549/0.1432, allocations: 0.9015 MB / 0.491 GB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002555/0.1435, allocations: 107.2 kB / 0.4911 GB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001964/0.1437, allocations: 151.4 kB / 0.4913 GB, free: 10.45 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1437, allocations: 0 / 0.4913 GB, free: 10.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02094/0.1646, allocations: 9.576 MB / 0.5006 GB, free: 1.051 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000389/0.1651, allocations: 221 kB / 0.5008 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.914/2.079, allocations: 3.938 kB / 0.5008 GB, free: 0.7969 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","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches