Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",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.001167/0.001167, allocations: 104.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.001145/0.001145, 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.399/1.399, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1719/0.1719, allocations: 38.04 MB / 329.7 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 62.73 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1048, allocations: 58.06 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.006564/0.1115, allocations: 4.796 MB / 461.8 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.1136, allocations: 1.484 MB / 463.3 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001908/0.1138, allocations: 19.88 kB / 463.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003314/0.1141, allocations: 111.2 kB / 463.4 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005718/0.1147, allocations: 266.4 kB / 463.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003513/0.1151, allocations: 139.8 kB / 463.8 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006216/0.1157, allocations: 0.5838 MB / 464.4 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004403/0.1162, allocations: 390.5 kB / 464.7 MB, free: 164 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002713/0.1164, allocations: 231.3 kB / 465 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003165/0.1168, allocations: 242.9 kB / 465.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.055e-05/0.1168, allocations: 40 kB / 465.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.055e-05/0.1169, allocations: 40 kB / 465.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.117, allocations: 123.6 kB / 465.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001944/0.1172, allocations: 223 kB / 465.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000433/0.1177, allocations: 0.4984 MB / 466.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1177, allocations: 0 / 466.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1177, allocations: 0 / 466.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.1177, allocations: 0 / 466.1 MB, free: 14.78 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001162/0.1189, allocations: 0.707 MB / 466.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.1189, allocations: 11.89 kB / 466.8 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.233e-05/0.119, allocations: 70.72 kB / 466.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.022e-05/0.1191, allocations: 52.31 kB / 467 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005454/0.1197, allocations: 399.9 kB / 467.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.444e-05/0.1198, allocations: 58.69 kB / 467.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.041e-05/0.1198, allocations: 36 kB / 467.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006872/0.1205, allocations: 440 kB / 467.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.424e-05/0.1206, allocations: 4 kB / 467.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.464e-05/0.1206, allocations: 12 kB / 467.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.1206, allocations: 8 kB / 467.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005141/0.1211, allocations: 274 kB / 468.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002229/0.1234, allocations: 1.849 MB / 470 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003155/0.1237, allocations: 175.6 kB / 470.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001927/0.1239, allocations: 70.69 kB / 470.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/0.1239, allocations: 3.984 kB / 470.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.124, allocations: 42.56 kB / 470.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.684e-06/0.124, allocations: 0 / 470.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001263/0.1253, allocations: 0.7125 MB / 471 MB, free: 9.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.05e-05/0.1253, allocations: 110.7 kB / 471.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003094/0.1257, allocations: 312.5 kB / 471.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.1257, allocations: 29.7 kB / 471.5 MB, free: 9.051 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.1259, allocations: 247.6 kB / 471.7 MB, free: 8.805 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.927e-05/0.1259, allocations: 67.2 kB / 471.8 MB, free: 8.738 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.598e-05/0.126, allocations: 69.94 kB / 471.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.1262, allocations: 342.8 kB / 472.2 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001617/0.1264, allocations: 68.62 kB / 472.2 MB, free: 8.254 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002377/0.1266, allocations: 205.5 kB / 472.4 MB, free: 7.996 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004024/0.127, allocations: 294 kB / 472.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.127, allocations: 4 kB / 472.7 MB, free: 7.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005265/0.1276, allocations: 332.4 kB / 473 MB, free: 7.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.1276, allocations: 4 kB / 473.1 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.1276, allocations: 12.03 kB / 473.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.1276, allocations: 4 kB / 473.1 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002755/0.1279, allocations: 75.89 kB / 473.1 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.1279, allocations: 11.94 kB / 473.2 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001782/0.1281, allocations: 12 kB / 473.2 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/0.1281, allocations: 12 kB / 473.2 MB, free: 7.191 MB / 350.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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001697/0.1283, allocations: 177.8 kB / 473.4 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.827e-05/0.1284, allocations: 39.56 kB / 473.4 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003888/0.1288, allocations: 196.6 kB / 473.6 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1288, allocations: 0 / 473.6 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.1288, allocations: 4 kB / 473.6 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1288, allocations: 0 / 473.6 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009132/0.1297, allocations: 0.6161 MB / 474.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1297, allocations: 4.031 kB / 474.2 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002266/0.13, allocations: 43.97 kB / 474.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.185e-06/0.13, allocations: 4 kB / 474.3 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.13, allocations: 3.938 kB / 474.3 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.13, allocations: 4 kB / 474.3 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.13, allocations: 0 / 474.3 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005726/0.1306, allocations: 451.9 kB / 474.7 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.6e-05/0.1307, allocations: 104.8 kB / 474.8 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.358e-05/0.1307, allocations: 8 kB / 474.8 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.1309, allocations: 8 kB / 474.8 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.44e-05/0.131, allocations: 11.92 kB / 474.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.131, allocations: 12 kB / 474.8 MB, free: 5.406 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002034/0.1312, allocations: 223 kB / 475.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1312, allocations: 3.938 kB / 475.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003907/0.1316, allocations: 72 kB / 475.1 MB, free: 5.113 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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 (20): * Single equations (assignments): 19 * Array equations: 0 * 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.000817/0.1325, allocations: 0.9812 MB / 476.1 MB, free: 4.102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000403/0.1329, allocations: 204.7 kB / 476.3 MB, free: 3.902 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1329, allocations: 0 / 476.3 MB, free: 3.902 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000158/0.133, allocations: 86.47 kB / 476.4 MB, free: 3.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006384/0.1337, allocations: 100.2 kB / 476.5 MB, free: 3.727 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004339/0.138, allocations: 3.426 MB / 479.9 MB, free: 88 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003912/0.1384, allocations: 0.8223 MB / 480.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000198/0.1387, allocations: 55.25 kB / 480.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/0.1388, allocations: 119.4 kB / 480.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1388, allocations: 0 / 480.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02682/0.1656, allocations: 6.892 MB / 487.8 MB, free: 8.297 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.137/7.303, allocations: 11.94 kB / 487.8 MB, free: 8.289 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches