Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",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.001525/0.001525, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001219/0.001219, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.335/1.335, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1755/0.1755, allocations: 38.03 MB / 329.7 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 73.64 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1069, allocations: 58.06 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.005785/0.1127, allocations: 4.393 MB / 461.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00241/0.1152, allocations: 1.523 MB / 462.9 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002739/0.1155, allocations: 11.94 kB / 462.9 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008336/0.1163, allocations: 286.7 kB / 463.2 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006489/0.117, allocations: 282.7 kB / 463.5 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006109/0.1176, allocations: 243.4 kB / 463.7 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000613/0.1182, allocations: 0.6118 MB / 464.3 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004099/0.1186, allocations: 231.8 kB / 464.5 MB, free: 372 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004122/0.1191, allocations: 263 kB / 464.8 MB, free: 108 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000558/0.1196, allocations: 370.8 kB / 465.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.177e-05/0.1197, allocations: 40 kB / 465.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004844/0.1202, allocations: 231.6 kB / 465.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002377/0.1205, allocations: 235.4 kB / 465.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003571/0.1209, allocations: 250.8 kB / 465.9 MB, free: 15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007624/0.1216, allocations: 0.6582 MB / 466.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.303e-06/0.1216, allocations: 3.984 kB / 466.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1217, allocations: 4 kB / 466.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.545e-05/0.1217, allocations: 0 / 466.6 MB, free: 14.33 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001452/0.1231, allocations: 0.769 MB / 467.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.1232, allocations: 15.89 kB / 467.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.677e-05/0.1233, allocations: 86.7 kB / 467.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006122/0.1239, allocations: 92.22 kB / 467.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005914/0.1245, allocations: 395.2 kB / 467.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.731e-05/0.1246, allocations: 33.36 kB / 467.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.1247, allocations: 47.91 kB / 468 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/0.1258, allocations: 0.707 MB / 468.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.255e-05/0.1258, allocations: 3.938 kB / 468.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.249e-05/0.1259, allocations: 15.98 kB / 468.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002118/0.1261, allocations: 64.95 kB / 468.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.1271, allocations: 0.6674 MB / 469.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003781/0.1309, allocations: 2.646 MB / 472.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005639/0.1315, allocations: 329.3 kB / 472.4 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003101/0.1318, allocations: 209.6 kB / 472.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.563e-05/0.1319, allocations: 4 kB / 472.6 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.1319, allocations: 34.56 kB / 472.7 MB, free: 7.914 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 2.455e-06/0.1319, allocations: 7.938 kB / 472.7 MB, free: 7.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002045/0.134, allocations: 1.29 MB / 473.9 MB, free: 6.562 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.56e-05/0.134, allocations: 89.05 kB / 474 MB, free: 6.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002776/0.1343, allocations: 287.2 kB / 474.3 MB, free: 6.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.729e-05/0.1344, allocations: 29.7 kB / 474.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000156/0.1345, allocations: 251.7 kB / 474.6 MB, free: 5.883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.1346, allocations: 142.1 kB / 474.7 MB, free: 5.742 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.1348, allocations: 90.02 kB / 474.8 MB, free: 5.648 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.135, allocations: 350.7 kB / 475.2 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002638/0.1352, allocations: 188.9 kB / 475.3 MB, free: 5.113 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003428/0.1356, allocations: 321.3 kB / 475.7 MB, free: 4.746 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006851/0.1363, allocations: 0.5622 MB / 476.2 MB, free: 4.125 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.982e-06/0.1363, allocations: 4 kB / 476.2 MB, free: 4.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001265/0.1376, allocations: 0.6704 MB / 476.9 MB, free: 3.438 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.1376, allocations: 12 kB / 476.9 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008707/0.1385, allocations: 491.5 kB / 477.4 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005073/0.139, allocations: 109.6 kB / 477.5 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003316/0.1394, allocations: 87.88 kB / 477.6 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002883/0.1423, allocations: 3.258 MB / 480.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003081/0.1426, allocations: 27.95 kB / 480.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.274e-05/0.1426, allocations: 23.94 kB / 480.9 MB, free: 15.15 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: 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: 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): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003093/0.143, allocations: 205.7 kB / 481.1 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001317/0.1431, allocations: 35.53 kB / 481.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007693/0.1439, allocations: 473.1 kB / 481.6 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.168e-05/0.1439, allocations: 8 kB / 481.6 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1439, allocations: 7.938 kB / 481.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.1439, allocations: 3.984 kB / 481.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001416/0.1454, allocations: 1.013 MB / 482.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.1454, allocations: 3.938 kB / 482.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003385/0.1457, allocations: 75.95 kB / 482.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.1457, allocations: 3.938 kB / 482.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.028e-05/0.1458, allocations: 11.98 kB / 482.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.1458, allocations: 4 kB / 482.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1458, allocations: 3.938 kB / 482.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009421/0.1467, allocations: 0.7357 MB / 483.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000164/0.1469, allocations: 148.5 kB / 483.6 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.112e-05/0.147, allocations: 7.984 kB / 483.6 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001934/0.1472, allocations: 15.98 kB / 483.6 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.151e-05/0.1472, allocations: 20.2 kB / 483.6 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.18e-05/0.1472, allocations: 8 kB / 483.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001994/0.1475, allocations: 207.1 kB / 483.9 MB, free: 12.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1475, allocations: 0 / 483.9 MB, free: 12.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005144/0.148, allocations: 112 kB / 484 MB, free: 11.94 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001368/0.1494, allocations: 1.336 MB / 485.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001121/0.1505, allocations: 0.7874 MB / 486.1 MB, free: 9.758 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.1505, allocations: 0 / 486.1 MB, free: 9.758 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002642/0.1508, allocations: 209.6 kB / 486.3 MB, free: 9.555 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004862/0.1513, allocations: 72.53 kB / 486.4 MB, free: 9.484 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005608/0.1569, allocations: 4.391 MB / 490.8 MB, free: 4.883 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005271/0.1575, allocations: 0.8743 MB / 491.6 MB, free: 3.984 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003245/0.1578, allocations: 111.2 kB / 491.7 MB, free: 3.875 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002211/0.158, allocations: 139.4 kB / 491.9 MB, free: 3.738 MB / 366.1 MB Notification: Performance of SimCode: time 8.22e-07/0.158, allocations: 0 / 491.9 MB, free: 3.738 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03372/0.1918, allocations: 7.956 MB / 499.8 MB, free: 11.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.909/9.101, allocations: 12.36 kB / 499.8 MB, free: 11.89 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches