Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",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.001136/0.001136, allocations: 104.9 kB / 16.92 MB, free: 5.777 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.001138/0.001138, allocations: 187.3 kB / 17.85 MB, free: 5.168 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.323/1.323, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1758/0.1758, allocations: 38.03 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 64.69 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1045, allocations: 58.06 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.00697/0.1115, allocations: 4.528 MB / 461.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00237/0.1139, allocations: 1.499 MB / 463 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003003/0.1142, allocations: 19.88 kB / 463 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000442/0.1146, allocations: 115.2 kB / 463.1 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007605/0.1154, allocations: 274.3 kB / 463.4 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000299/0.1158, allocations: 107.9 kB / 463.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007456/0.1165, allocations: 0.5097 MB / 464 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000264/0.1168, allocations: 159.9 kB / 464.2 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000276/0.1171, allocations: 195.2 kB / 464.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003415/0.1174, allocations: 215 kB / 464.6 MB, free: 340 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.511e-05/0.1175, allocations: 28 kB / 464.6 MB, free: 312 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.32e-05/0.1176, allocations: 24 kB / 464.6 MB, free: 288 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.1177, allocations: 103.7 kB / 464.7 MB, free: 184 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001863/0.1179, allocations: 183.1 kB / 464.9 MB, free: 0 / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003994/0.1183, allocations: 370.7 kB / 465.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1183, allocations: 0 / 465.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1183, allocations: 0 / 465.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.1183, allocations: 8 kB / 465.3 MB, free: 15.63 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001103/0.1194, allocations: 0.6618 MB / 465.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.1195, allocations: 11.89 kB / 465.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.468e-05/0.1195, allocations: 62.73 kB / 466 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.352e-05/0.1196, allocations: 40.47 kB / 466 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005838/0.1202, allocations: 387.4 kB / 466.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.196e-05/0.1202, allocations: 20.56 kB / 466.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.71e-05/0.1203, allocations: 24 kB / 466.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000468/0.1208, allocations: 342.2 kB / 466.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.1208, allocations: 4 kB / 466.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.506e-05/0.1208, allocations: 8 kB / 466.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.1208, allocations: 8 kB / 466.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003321/0.1212, allocations: 209.4 kB / 467 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001474/0.1227, allocations: 1.486 MB / 468.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003792/0.123, allocations: 198.4 kB / 468.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.1232, allocations: 75.42 kB / 468.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.1232, allocations: 0 / 468.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.1232, allocations: 42.48 kB / 468.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 2.555e-06/0.1232, allocations: 0 / 468.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001054/0.1243, allocations: 0.6891 MB / 469.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.545e-05/0.1244, allocations: 132.5 kB / 469.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003191/0.1247, allocations: 317.6 kB / 470 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.927e-05/0.1247, allocations: 29.7 kB / 470 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.1249, allocations: 215.8 kB / 470.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.177e-05/0.125, allocations: 67 kB / 470.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.294e-05/0.1251, allocations: 57.69 kB / 470.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.1252, allocations: 346.9 kB / 470.7 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.658e-05/0.1253, allocations: 47.97 kB / 470.7 MB, free: 9.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001643/0.1255, allocations: 144.8 kB / 470.8 MB, free: 9.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002755/0.1258, allocations: 220.7 kB / 471.1 MB, free: 9.348 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1258, allocations: 0 / 471.1 MB, free: 9.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003799/0.1262, allocations: 264.1 kB / 471.3 MB, free: 9.086 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.1262, allocations: 4 kB / 471.3 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.1262, allocations: 4 kB / 471.3 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/0.1262, allocations: 7.938 kB / 471.3 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003716/0.1266, allocations: 84.33 kB / 471.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009275/0.1275, allocations: 1.373 MB / 472.8 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001654/0.1277, allocations: 16 kB / 472.8 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.189e-05/0.1278, allocations: 15.98 kB / 472.8 MB, free: 7.441 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002557/0.128, allocations: 170.5 kB / 473 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.263e-05/0.1281, allocations: 31.72 kB / 473 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002962/0.1284, allocations: 188.4 kB / 473.2 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.1284, allocations: 0 / 473.2 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.1284, allocations: 4 kB / 473.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1284, allocations: 0 / 473.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007439/0.1292, allocations: 0.5412 MB / 473.7 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1292, allocations: 0 / 473.7 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002286/0.1294, allocations: 47.95 kB / 473.8 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.1295, allocations: 0 / 473.8 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.803e-05/0.1295, allocations: 8 kB / 473.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.1295, allocations: 0 / 473.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.1295, allocations: 3.938 kB / 473.8 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004536/0.1299, allocations: 498.4 kB / 474.3 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.394e-05/0.13, allocations: 100.7 kB / 474.4 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.22e-05/0.1301, allocations: 12.03 kB / 474.4 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.1303, allocations: 7.938 kB / 474.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.098e-05/0.1303, allocations: 15.92 kB / 474.4 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.1303, allocations: 4 kB / 474.4 MB, free: 5.719 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002053/0.1305, allocations: 223.2 kB / 474.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1306, allocations: 3.938 kB / 474.6 MB, free: 5.496 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004121/0.131, allocations: 60 kB / 474.7 MB, free: 5.438 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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.0007081/0.1317, allocations: 1.024 MB / 475.7 MB, free: 4.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000356/0.1321, allocations: 175.6 kB / 475.9 MB, free: 4.207 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.1321, allocations: 4 kB / 475.9 MB, free: 4.203 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.1322, allocations: 67.14 kB / 476 MB, free: 4.141 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006999/0.1329, allocations: 101.2 kB / 476.1 MB, free: 4.047 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003695/0.1366, allocations: 3.275 MB / 479.3 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004157/0.137, allocations: 0.8068 MB / 480.2 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002103/0.1372, allocations: 54.94 kB / 480.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001673/0.1374, allocations: 123.3 kB / 480.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1374, allocations: 0 / 480.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02439/0.1618, allocations: 6.6 MB / 486.9 MB, free: 9.117 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.191/7.353, allocations: 11.8 kB / 486.9 MB, free: 9.105 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches