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.001069/0.001069, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.001155/0.001155, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.342/1.342, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.178/0.178, allocations: 38.04 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 66.56 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09822/0.09961, allocations: 58.06 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Sensor): time 0.006772/0.1064, allocations: 4.502 MB / 461.5 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002527/0.109, allocations: 1.418 MB / 462.9 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003605/0.1094, allocations: 15.88 kB / 462.9 MB, free: 2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001054/0.1105, allocations: 282.7 kB / 463.2 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008484/0.1113, allocations: 282.7 kB / 463.5 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007103/0.112, allocations: 255.4 kB / 463.7 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008312/0.1129, allocations: 0.6587 MB / 464.4 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004442/0.1133, allocations: 244.3 kB / 464.6 MB, free: 300 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000563/0.1139, allocations: 294.9 kB / 464.9 MB, free: 4 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007507/0.1147, allocations: 418.8 kB / 465.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001234/0.1148, allocations: 44 kB / 465.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005229/0.1153, allocations: 231.5 kB / 465.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002682/0.1156, allocations: 247.4 kB / 465.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003964/0.116, allocations: 286.6 kB / 466.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008172/0.1169, allocations: 0.736 MB / 466.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1169, allocations: 0 / 466.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.487e-06/0.1169, allocations: 8 kB / 466.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.346e-05/0.1169, allocations: 0 / 466.8 MB, free: 14.05 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.001695/0.1186, allocations: 0.8882 MB / 467.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.1187, allocations: 15.89 kB / 467.7 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001189/0.1188, allocations: 94.69 kB / 467.8 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005606/0.1194, allocations: 92.23 kB / 467.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005874/0.12, allocations: 419.9 kB / 468.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.664e-05/0.12, allocations: 29.36 kB / 468.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.559e-05/0.1201, allocations: 43.94 kB / 468.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.1212, allocations: 0.8629 MB / 469.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/0.1213, allocations: 4 kB / 469.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.256e-05/0.1213, allocations: 16 kB / 469.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001341/0.1215, allocations: 60.95 kB / 469.3 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.1226, allocations: 0.8001 MB / 470.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003714/0.1263, allocations: 2.729 MB / 472.9 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008081/0.1272, allocations: 0.5773 MB / 473.5 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004843/0.1277, allocations: 454.7 kB / 473.9 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.379e-05/0.1277, allocations: 4 kB / 473.9 MB, free: 6.676 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.1278, allocations: 42.5 kB / 473.9 MB, free: 6.625 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.224e-06/0.1278, allocations: 0 / 473.9 MB, free: 6.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.002839/0.1306, allocations: 1.88 MB / 475.8 MB, free: 4.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.673e-05/0.1307, allocations: 142.8 kB / 476 MB, free: 4.539 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000279/0.131, allocations: 300.4 kB / 476.3 MB, free: 4.242 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.831e-05/0.131, allocations: 29.7 kB / 476.3 MB, free: 4.207 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/0.1312, allocations: 256.3 kB / 476.5 MB, free: 3.949 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.1313, allocations: 193.2 kB / 476.7 MB, free: 3.758 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001537/0.1315, allocations: 102.1 kB / 476.8 MB, free: 3.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1316, allocations: 350.8 kB / 477.2 MB, free: 3.301 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004369/0.1321, allocations: 340.9 kB / 477.5 MB, free: 2.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005063/0.1326, allocations: 484.7 kB / 478 MB, free: 2.434 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001058/0.1337, allocations: 0.9837 MB / 479 MB, free: 1.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-06/0.1337, allocations: 0 / 479 MB, free: 1.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001326/0.135, allocations: 0.9845 MB / 479.9 MB, free: 392 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.143e-05/0.1351, allocations: 79.62 kB / 480 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.1351, allocations: 4 kB / 480 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001693/0.1353, allocations: 40.83 kB / 480.1 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003247/0.1356, allocations: 87.83 kB / 480.1 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/0.1369, allocations: 1.551 MB / 481.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003212/0.1372, allocations: 32.03 kB / 481.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.631e-05/0.1373, allocations: 27.94 kB / 481.8 MB, free: 14.42 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.0003587/0.1376, allocations: 307.2 kB / 482.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.1378, allocations: 43.53 kB / 482.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001507/0.1393, allocations: 1.076 MB / 483.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.663e-05/0.1393, allocations: 23.98 kB / 483.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1393, allocations: 0 / 483.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.1393, allocations: 0 / 483.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002442/0.1418, allocations: 1.789 MB / 485 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.1418, allocations: 0 / 485 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002642/0.1421, allocations: 59.89 kB / 485 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001116/0.1422, allocations: 40.89 kB / 485.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.158e-05/0.1422, allocations: 12 kB / 485.1 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001209/0.1435, allocations: 1.547 MB / 486.6 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1435, allocations: 4.031 kB / 486.6 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.145, allocations: 1.183 MB / 487.8 MB, free: 8.059 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002235/0.1452, allocations: 180.4 kB / 488 MB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.521e-05/0.1453, allocations: 8 kB / 488 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.1456, allocations: 27.97 kB / 488 MB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.1457, allocations: 51.81 kB / 488.1 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.5e-05/0.1457, allocations: 20 kB / 488.1 MB, free: 7.758 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001917/0.1459, allocations: 203.1 kB / 488.3 MB, free: 7.559 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1459, allocations: 4 kB / 488.3 MB, free: 7.555 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005421/0.1465, allocations: 140 kB / 488.5 MB, free: 7.418 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.001815/0.1483, allocations: 1.767 MB / 490.2 MB, free: 5.605 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.1501, allocations: 1.488 MB / 491.7 MB, free: 4.094 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.1501, allocations: 4.188 kB / 491.7 MB, free: 4.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009445/0.1511, allocations: 0.9202 MB / 492.6 MB, free: 3.145 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005359/0.1516, allocations: 84.91 kB / 492.7 MB, free: 3.055 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007225/0.1588, allocations: 5.865 MB / 498.6 MB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004765/0.1593, allocations: 0.9054 MB / 499.5 MB, free: 12.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002763/0.1596, allocations: 99.2 kB / 499.6 MB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.1598, allocations: 155.4 kB / 499.7 MB, free: 11.8 MB / 382.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1598, allocations: 0 / 499.7 MB, free: 11.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03179/0.1916, allocations: 10.05 MB / 0.4978 GB, free: 1.867 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.922/9.114, allocations: 8.438 kB / 0.4978 GB, free: 1.863 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