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.001129/0.001129, allocations: 98.77 kB / 16.5 MB, free: 6.641 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.001189/0.001189, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.268/1.268, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1657/0.1657, allocations: 38.04 MB / 329.3 MB, free: 9.102 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 65.19 kB / 398.2 MB, free: 34.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09671/0.09788, allocations: 58.07 MB / 456.3 MB, free: 8.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.007209/0.1051, allocations: 5.431 MB / 461.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002812/0.108, allocations: 1.675 MB / 463.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002887/0.1083, allocations: 27.81 kB / 463.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003824/0.1087, allocations: 95.42 kB / 463.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006121/0.1093, allocations: 238.7 kB / 463.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003098/0.1097, allocations: 123.9 kB / 463.8 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007585/0.1104, allocations: 0.7262 MB / 464.6 MB, free: 112 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004074/0.1108, allocations: 321.8 kB / 464.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000266/0.1111, allocations: 211.1 kB / 465.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003088/0.1114, allocations: 243 kB / 465.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.478e-05/0.1115, allocations: 28 kB / 465.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.472e-05/0.1116, allocations: 28 kB / 465.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000135/0.1117, allocations: 115.6 kB / 465.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002072/0.1119, allocations: 214.9 kB / 465.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004267/0.1124, allocations: 490.3 kB / 466.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1124, allocations: 0 / 466.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.1124, allocations: 0 / 466.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.1124, allocations: 0 / 466.2 MB, free: 14.49 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.001257/0.1137, allocations: 0.7108 MB / 466.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.1137, allocations: 8.031 kB / 466.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.954e-05/0.1138, allocations: 70.72 kB / 467 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.836e-05/0.1139, allocations: 44.47 kB / 467 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005312/0.1144, allocations: 403.8 kB / 467.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.486e-05/0.1145, allocations: 54.7 kB / 467.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.74e-05/0.1146, allocations: 36 kB / 467.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006654/0.1153, allocations: 436 kB / 467.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.1153, allocations: 4 kB / 467.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.311e-05/0.1153, allocations: 16 kB / 467.9 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.1153, allocations: 8 kB / 467.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004948/0.1158, allocations: 277.9 kB / 468.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002079/0.1179, allocations: 1.849 MB / 470.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000386/0.1183, allocations: 175.6 kB / 470.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/0.1185, allocations: 78.66 kB / 470.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.1185, allocations: 4 kB / 470.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.1186, allocations: 34.56 kB / 470.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.684e-06/0.1186, allocations: 0 / 470.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001279/0.1198, allocations: 0.7096 MB / 471.1 MB, free: 9.234 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.406e-05/0.1199, allocations: 102.8 kB / 471.2 MB, free: 9.109 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002932/0.1202, allocations: 316.4 kB / 471.5 MB, free: 8.793 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.1202, allocations: 29.7 kB / 471.5 MB, free: 8.758 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001474/0.1204, allocations: 247.5 kB / 471.7 MB, free: 8.512 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.143e-05/0.1204, allocations: 67.09 kB / 471.8 MB, free: 8.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.466e-05/0.1205, allocations: 65.94 kB / 471.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.1207, allocations: 346.9 kB / 472.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.1208, allocations: 68.62 kB / 472.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002204/0.1211, allocations: 201.5 kB / 472.5 MB, free: 7.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003847/0.1214, allocations: 294.4 kB / 472.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1215, allocations: 0 / 472.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005256/0.122, allocations: 335.7 kB / 473.1 MB, free: 7.031 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.122, allocations: 7.938 kB / 473.1 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.122, allocations: 11.94 kB / 473.1 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.1221, allocations: 4.562 kB / 473.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002905/0.1223, allocations: 79.91 kB / 473.2 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.706e-05/0.1224, allocations: 11.94 kB / 473.2 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001678/0.1225, allocations: 11.98 kB / 473.2 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.365e-05/0.1226, allocations: 16 kB / 473.2 MB, free: 6.891 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.0001977/0.1228, allocations: 173.8 kB / 473.4 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.029e-05/0.1229, allocations: 35.56 kB / 473.4 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003893/0.1233, allocations: 207 kB / 473.6 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.1233, allocations: 0 / 473.6 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.1233, allocations: 4 kB / 473.6 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.1233, allocations: 0 / 473.6 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008761/0.1242, allocations: 0.62 MB / 474.3 MB, free: 5.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.1242, allocations: 4 kB / 474.3 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002271/0.1244, allocations: 35.98 kB / 474.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.1244, allocations: 12.02 kB / 474.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.1245, allocations: 4 kB / 474.3 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.1245, allocations: 7.938 kB / 474.3 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1245, allocations: 0 / 474.3 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005701/0.125, allocations: 451.9 kB / 474.8 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.556e-05/0.1251, allocations: 100.7 kB / 474.9 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.316e-05/0.1252, allocations: 8 kB / 474.9 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.1254, allocations: 8.031 kB / 474.9 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.902e-05/0.1254, allocations: 15.92 kB / 474.9 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.1254, allocations: 8 kB / 474.9 MB, free: 5.105 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001799/0.1256, allocations: 219 kB / 475.1 MB, free: 4.891 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1256, allocations: 0 / 475.1 MB, free: 4.891 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003794/0.126, allocations: 72 kB / 475.2 MB, free: 4.82 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.0007346/0.1267, allocations: 0.9785 MB / 476.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003685/0.1271, allocations: 199.6 kB / 476.4 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1271, allocations: 0 / 476.4 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001542/0.1273, allocations: 83.38 kB / 476.4 MB, free: 3.531 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006329/0.1279, allocations: 100.5 kB / 476.5 MB, free: 3.434 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004125/0.1321, allocations: 3.543 MB / 480.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004015/0.1325, allocations: 0.8149 MB / 480.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000215/0.1327, allocations: 47.27 kB / 480.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001691/0.1329, allocations: 123.3 kB / 481.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1329, allocations: 3.938 kB / 481.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01723/0.1501, allocations: 6.618 MB / 487.7 MB, free: 8.203 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002269/0.1504, allocations: 204.5 kB / 487.9 MB, free: 7.949 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.764/1.915, allocations: 0 / 487.9 MB, free: 7.949 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","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches