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.001494/0.001495, allocations: 113.8 kB / 17.07 MB, free: 5.969 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.001695/0.001695, allocations: 194.8 kB / 18.01 MB, free: 5.051 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.395/1.395, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1803/0.1803, allocations: 38.04 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 59.91 kB / 457.7 MB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3448, allocations: 58.06 MB / 0.5036 GB, free: 7.516 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005745/0.3506, allocations: 4.518 MB / 0.508 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001894/0.3526, allocations: 1.498 MB / 0.5095 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002083/0.3528, allocations: 16.5 kB / 0.5095 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004145/0.3532, allocations: 118.9 kB / 0.5096 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005937/0.3538, allocations: 280.9 kB / 0.5099 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002682/0.3541, allocations: 116.5 kB / 0.51 GB, free: 3.023 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006282/0.3548, allocations: 0.5024 MB / 0.5105 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002544/0.355, allocations: 159.2 kB / 0.5107 GB, free: 2.738 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002416/0.3553, allocations: 212.7 kB / 0.5109 GB, free: 2.637 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000298/0.3556, allocations: 207.8 kB / 0.5111 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.756e-05/0.3556, allocations: 26.62 kB / 0.5111 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.013e-05/0.3557, allocations: 25.66 kB / 0.5111 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001234/0.3558, allocations: 98.11 kB / 0.5112 GB, free: 2.504 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001721/0.356, allocations: 187.8 kB / 0.5114 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000463/0.3565, allocations: 383.2 kB / 0.5117 GB, free: 2.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3565, allocations: 1 kB / 0.5117 GB, free: 2.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3565, allocations: 0 / 0.5117 GB, free: 2.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.3565, allocations: 0.5625 kB / 0.5117 GB, free: 2.23 MB / 382.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.001003/0.3575, allocations: 0.671 MB / 0.5124 GB, free: 1.684 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.3576, allocations: 17.33 kB / 0.5124 GB, free: 1.676 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.976e-05/0.3576, allocations: 62.25 kB / 0.5125 GB, free: 1.621 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.92e-05/0.3577, allocations: 45.12 kB / 0.5125 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000617/0.3583, allocations: 407.9 kB / 0.5129 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.3584, allocations: 19.44 kB / 0.5129 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.502e-05/0.3584, allocations: 30.28 kB / 0.513 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000477/0.3589, allocations: 336.2 kB / 0.5133 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.3589, allocations: 5.969 kB / 0.5133 GB, free: 1.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.791e-05/0.359, allocations: 12.22 kB / 0.5133 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.359, allocations: 6.375 kB / 0.5133 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003389/0.3593, allocations: 207.4 kB / 0.5135 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001483/0.3608, allocations: 1.492 MB / 0.515 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004421/0.3613, allocations: 197.2 kB / 0.5151 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001278/0.3614, allocations: 75.14 kB / 0.5152 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.3614, allocations: 1.406 kB / 0.5152 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.3615, allocations: 46.42 kB / 0.5153 GB, free: 15.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.463e-06/0.3615, allocations: 0 / 0.5153 GB, free: 15.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001187/0.3627, allocations: 0.6919 MB / 0.5159 GB, free: 14.97 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.469e-05/0.3628, allocations: 139.3 kB / 0.5161 GB, free: 14.8 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003516/0.3631, allocations: 320.6 kB / 0.5164 GB, free: 14.63 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.3632, allocations: 35.2 kB / 0.5164 GB, free: 14.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001528/0.3633, allocations: 210.8 kB / 0.5166 GB, free: 14.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.033e-05/0.3634, allocations: 74.03 kB / 0.5167 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.608e-05/0.3635, allocations: 51.94 kB / 0.5167 GB, free: 14.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.3636, allocations: 344.4 kB / 0.5171 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.575e-05/0.3637, allocations: 45.67 kB / 0.5171 GB, free: 13.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001619/0.3639, allocations: 152.1 kB / 0.5172 GB, free: 13.83 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002905/0.3642, allocations: 228.5 kB / 0.5175 GB, free: 13.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.3642, allocations: 1.641 kB / 0.5175 GB, free: 13.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000391/0.3646, allocations: 254.2 kB / 0.5177 GB, free: 13.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.3646, allocations: 5.594 kB / 0.5177 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.3647, allocations: 3.531 kB / 0.5177 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.3647, allocations: 10.58 kB / 0.5177 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004257/0.3651, allocations: 80.8 kB / 0.5178 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001037/0.3662, allocations: 1.373 MB / 0.5191 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.3663, allocations: 9.516 kB / 0.5192 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.207e-05/0.3664, allocations: 13.97 kB / 0.5192 GB, free: 12.06 MB / 398.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.0001873/0.3666, allocations: 170.3 kB / 0.5193 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.1e-05/0.3667, allocations: 36.33 kB / 0.5194 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003493/0.367, allocations: 183.5 kB / 0.5195 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.367, allocations: 3.469 kB / 0.5195 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.367, allocations: 1.094 kB / 0.5195 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.3671, allocations: 1.938 kB / 0.5195 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008933/0.368, allocations: 0.5493 MB / 0.5201 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.368, allocations: 1.344 kB / 0.5201 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002635/0.3682, allocations: 42.69 kB / 0.5201 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.3683, allocations: 2 kB / 0.5201 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.3683, allocations: 7.516 kB / 0.5201 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.259e-06/0.3683, allocations: 5.219 kB / 0.5201 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3683, allocations: 5.938 kB / 0.5201 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004972/0.3688, allocations: 0.4901 MB / 0.5206 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.847e-05/0.3689, allocations: 107.2 kB / 0.5207 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.976e-05/0.3689, allocations: 6.875 kB / 0.5207 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.3692, allocations: 7.062 kB / 0.5207 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.793e-05/0.3692, allocations: 21.66 kB / 0.5208 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.54e-05/0.3692, allocations: 14.06 kB / 0.5208 GB, free: 10.85 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002335/0.3695, allocations: 218.8 kB / 0.521 GB, free: 10.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.442e-06/0.3695, allocations: 0 / 0.521 GB, free: 10.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004395/0.3699, allocations: 64.56 kB / 0.521 GB, free: 10.72 MB / 398.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.0007383/0.3707, allocations: 1.026 MB / 0.522 GB, free: 9.809 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003611/0.371, allocations: 152.8 kB / 0.5222 GB, free: 9.766 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.371, allocations: 0.875 kB / 0.5222 GB, free: 9.766 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001137/0.3712, allocations: 71.03 kB / 0.5223 GB, free: 9.742 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00075/0.3719, allocations: 93.45 kB / 0.5223 GB, free: 9.711 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004011/0.3759, allocations: 3.278 MB / 0.5255 GB, free: 7.371 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004132/0.3764, allocations: 0.8017 MB / 0.5263 GB, free: 6.664 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002179/0.3766, allocations: 57.56 kB / 0.5264 GB, free: 6.645 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.3768, allocations: 112.1 kB / 0.5265 GB, free: 6.562 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3768, allocations: 0 / 0.5265 GB, free: 6.562 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02826/0.405, allocations: 6.724 MB / 0.5331 GB, free: 4.906 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.83/8.235, allocations: 9.031 kB / 0.5331 GB, free: 4.898 MB / 398.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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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