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.00112/0.00112, allocations: 106.7 kB / 16.62 MB, free: 6.809 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.001285/0.001285, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.319/1.319, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1857/0.1857, allocations: 38.03 MB / 329.4 MB, free: 9.059 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 58.41 kB / 398.4 MB, free: 34.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1253, allocations: 58.07 MB / 456.5 MB, free: 8.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.007707/0.1331, allocations: 5.441 MB / 461.9 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003286/0.1364, allocations: 1.671 MB / 463.6 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007344/0.1372, allocations: 27.81 kB / 463.6 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000551/0.1378, allocations: 99.34 kB / 463.7 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009552/0.1388, allocations: 242.8 kB / 463.9 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003774/0.1392, allocations: 119.8 kB / 464 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008944/0.1401, allocations: 0.5838 MB / 464.6 MB, free: 140 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006722/0.1408, allocations: 394.6 kB / 465 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005525/0.1413, allocations: 243 kB / 465.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004625/0.1418, allocations: 243 kB / 465.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.904e-05/0.1419, allocations: 40 kB / 465.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000109/0.142, allocations: 40 kB / 465.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001567/0.1422, allocations: 119.6 kB / 465.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002858/0.1425, allocations: 227 kB / 465.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005605/0.1431, allocations: 0.4983 MB / 466.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.1431, allocations: 4 kB / 466.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1431, allocations: 3.938 kB / 466.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.767e-05/0.1431, allocations: 4 kB / 466.4 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001439/0.1446, allocations: 0.6913 MB / 467.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.1446, allocations: 15.89 kB / 467.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001083/0.1447, allocations: 78.7 kB / 467.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.219e-05/0.1448, allocations: 40.47 kB / 467.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006125/0.1454, allocations: 399.8 kB / 467.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.456e-05/0.1456, allocations: 62.62 kB / 467.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.111e-05/0.1456, allocations: 36 kB / 467.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007304/0.1464, allocations: 432.1 kB / 468.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/0.1464, allocations: 4 kB / 468.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.772e-05/0.1465, allocations: 12 kB / 468.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.1465, allocations: 11.98 kB / 468.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005404/0.147, allocations: 274 kB / 468.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002564/0.1496, allocations: 1.845 MB / 470.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003376/0.1499, allocations: 179.6 kB / 470.5 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001439/0.1501, allocations: 74.67 kB / 470.5 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.1501, allocations: 7.938 kB / 470.5 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/0.1502, allocations: 38.48 kB / 470.6 MB, free: 9.863 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 2.184e-06/0.1502, allocations: 4 kB / 470.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001402/0.1516, allocations: 0.6943 MB / 471.3 MB, free: 9.109 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.1517, allocations: 106.8 kB / 471.4 MB, free: 8.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003026/0.152, allocations: 316.5 kB / 471.7 MB, free: 8.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.375e-05/0.152, allocations: 29.95 kB / 471.7 MB, free: 8.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.1522, allocations: 247.5 kB / 472 MB, free: 8.379 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.361e-05/0.1522, allocations: 67.09 kB / 472 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.553e-05/0.1523, allocations: 65.94 kB / 472.1 MB, free: 8.242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.1524, allocations: 342.8 kB / 472.4 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.1526, allocations: 72.62 kB / 472.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002241/0.1528, allocations: 201.5 kB / 472.7 MB, free: 7.574 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004075/0.1532, allocations: 306 kB / 473 MB, free: 7.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1533, allocations: 0 / 473 MB, free: 7.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005379/0.1538, allocations: 331.8 kB / 473.3 MB, free: 6.891 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.1538, allocations: 11.94 kB / 473.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.1538, allocations: 4 kB / 473.3 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.1539, allocations: 4 kB / 473.3 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002914/0.1542, allocations: 75.89 kB / 473.4 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.685e-05/0.1542, allocations: 11.94 kB / 473.4 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001832/0.1544, allocations: 8 kB / 473.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.606e-05/0.1544, allocations: 20 kB / 473.5 MB, free: 6.758 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.1546, allocations: 177.9 kB / 473.6 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.137e-05/0.1547, allocations: 35.56 kB / 473.7 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003764/0.155, allocations: 199 kB / 473.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.1551, allocations: 0 / 473.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.1551, allocations: 4 kB / 473.9 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1551, allocations: 0 / 473.9 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008836/0.156, allocations: 0.6239 MB / 474.5 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.156, allocations: 0 / 474.5 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002434/0.1562, allocations: 47.91 kB / 474.5 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.1562, allocations: 4 kB / 474.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/0.1563, allocations: 0 / 474.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.1563, allocations: 4 kB / 474.5 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1563, allocations: 0 / 474.5 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000608/0.1569, allocations: 455.9 kB / 475 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.316e-05/0.157, allocations: 104.8 kB / 475.1 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.584e-05/0.157, allocations: 8 kB / 475.1 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.1572, allocations: 8 kB / 475.1 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.913e-05/0.1573, allocations: 11.98 kB / 475.1 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.1573, allocations: 8 kB / 475.1 MB, free: 4.973 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002073/0.1575, allocations: 226.9 kB / 475.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1576, allocations: 0 / 475.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003995/0.158, allocations: 72 kB / 475.4 MB, free: 4.68 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.0009187/0.1589, allocations: 0.9812 MB / 476.4 MB, free: 3.668 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000431/0.1593, allocations: 207.4 kB / 476.6 MB, free: 3.469 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1593, allocations: 4.062 kB / 476.6 MB, free: 3.465 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001623/0.1595, allocations: 82.19 kB / 476.7 MB, free: 3.387 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006633/0.1602, allocations: 108.4 kB / 476.8 MB, free: 3.285 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004616/0.1648, allocations: 3.553 MB / 480.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004835/0.1653, allocations: 0.8185 MB / 481.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002184/0.1655, allocations: 43.27 kB / 481.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001721/0.1657, allocations: 123.4 kB / 481.3 MB, free: 14.51 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1657, allocations: 4 kB / 481.3 MB, free: 14.51 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02171/0.1874, allocations: 6.788 MB / 488.1 MB, free: 7.891 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002527/0.1877, allocations: 207.1 kB / 488.3 MB, free: 7.637 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.906/2.094, allocations: 3.625 kB / 488.3 MB, free: 7.637 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