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.001318/0.001318, allocations: 113.2 kB / 17.06 MB, free: 6 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.001407/0.001407, allocations: 198.9 kB / 18 MB, free: 5.078 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.441/1.441, 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.1902/0.1902, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 59.91 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.3464, allocations: 58.04 MB / 0.5036 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005862/0.3523, allocations: 4.537 MB / 0.508 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001882/0.3542, allocations: 1.496 MB / 0.5095 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002465/0.3544, allocations: 13.12 kB / 0.5095 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004388/0.3549, allocations: 119 kB / 0.5096 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007173/0.3557, allocations: 276.3 kB / 0.5099 GB, free: 3.098 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000299/0.356, allocations: 111.7 kB / 0.51 GB, free: 3.039 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006347/0.3566, allocations: 0.5017 MB / 0.5105 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000253/0.3569, allocations: 163.2 kB / 0.5106 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002416/0.3571, allocations: 204.9 kB / 0.5108 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002818/0.3574, allocations: 213.5 kB / 0.511 GB, free: 2.562 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.434e-05/0.3575, allocations: 25.19 kB / 0.5111 GB, free: 2.562 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.989e-05/0.3575, allocations: 27.16 kB / 0.5111 GB, free: 2.562 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001294/0.3577, allocations: 101.3 kB / 0.5112 GB, free: 2.516 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001624/0.3578, allocations: 187.1 kB / 0.5114 GB, free: 2.402 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004445/0.3583, allocations: 384.5 kB / 0.5117 GB, free: 2.242 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3583, allocations: 0.75 kB / 0.5117 GB, free: 2.242 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3583, allocations: 0 / 0.5117 GB, free: 2.242 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.3583, allocations: 1.219 kB / 0.5117 GB, free: 2.242 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.0009969/0.3593, allocations: 0.6567 MB / 0.5124 GB, free: 1.711 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.3594, allocations: 13.98 kB / 0.5124 GB, free: 1.707 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.413e-05/0.3594, allocations: 65.98 kB / 0.5125 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.146e-05/0.3595, allocations: 40.25 kB / 0.5125 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006047/0.3601, allocations: 413.2 kB / 0.5129 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.3602, allocations: 18.81 kB / 0.5129 GB, free: 1.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.97e-05/0.3602, allocations: 30.56 kB / 0.5129 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004558/0.3607, allocations: 331.2 kB / 0.5133 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.3607, allocations: 1.031 kB / 0.5133 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.52e-05/0.3607, allocations: 15 kB / 0.5133 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.3608, allocations: 8 kB / 0.5133 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003297/0.3611, allocations: 207.2 kB / 0.5135 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.3626, allocations: 1.484 MB / 0.5149 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004308/0.3631, allocations: 201.5 kB / 0.5151 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.3632, allocations: 74.38 kB / 0.5152 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.3632, allocations: 2.469 kB / 0.5152 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.3633, allocations: 38.28 kB / 0.5152 GB, free: 15.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.753e-06/0.3633, allocations: 0 / 0.5152 GB, free: 15.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001108/0.3644, allocations: 0.6797 MB / 0.5159 GB, free: 15.03 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.737e-05/0.3645, allocations: 136.1 kB / 0.516 GB, free: 14.87 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003383/0.3648, allocations: 320 kB / 0.5163 GB, free: 14.69 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.3649, allocations: 27.77 kB / 0.5163 GB, free: 14.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001765/0.365, allocations: 222.3 kB / 0.5166 GB, free: 14.47 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.053e-05/0.3651, allocations: 64.78 kB / 0.5166 GB, free: 14.42 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.847e-05/0.3652, allocations: 53.11 kB / 0.5167 GB, free: 14.39 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3654, allocations: 340.2 kB / 0.517 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.675e-05/0.3655, allocations: 49.62 kB / 0.517 GB, free: 14.05 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001742/0.3656, allocations: 156.1 kB / 0.5172 GB, free: 13.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002588/0.3659, allocations: 222.3 kB / 0.5174 GB, free: 13.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3659, allocations: 0 / 0.5174 GB, free: 13.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003789/0.3663, allocations: 254.3 kB / 0.5176 GB, free: 13.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.3663, allocations: 9.906 kB / 0.5177 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.3664, allocations: 7.453 kB / 0.5177 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.3664, allocations: 10.23 kB / 0.5177 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004004/0.3668, allocations: 76.75 kB / 0.5177 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001099/0.3679, allocations: 1.378 MB / 0.5191 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000173/0.3681, allocations: 16.78 kB / 0.5191 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.06e-05/0.3681, allocations: 14.45 kB / 0.5191 GB, free: 12.11 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.00023/0.3684, allocations: 174.2 kB / 0.5193 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.3685, allocations: 31.27 kB / 0.5193 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003938/0.3689, allocations: 187.2 kB / 0.5195 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.3689, allocations: 3.469 kB / 0.5195 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.3689, allocations: 1.953 kB / 0.5195 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.3689, allocations: 1.641 kB / 0.5195 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001208/0.3701, allocations: 0.535 MB / 0.52 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.3702, allocations: 1.062 kB / 0.52 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003147/0.3705, allocations: 46.94 kB / 0.5201 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.3705, allocations: 5.812 kB / 0.5201 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.3705, allocations: 2.531 kB / 0.5201 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/0.3705, allocations: 2.188 kB / 0.5201 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/0.3706, allocations: 5.75 kB / 0.5201 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006588/0.3712, allocations: 0.4924 MB / 0.5206 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.3713, allocations: 105.5 kB / 0.5207 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.035e-05/0.3714, allocations: 7.094 kB / 0.5207 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.3716, allocations: 7.094 kB / 0.5207 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.239e-05/0.3716, allocations: 14.86 kB / 0.5207 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.3717, allocations: 8.125 kB / 0.5207 GB, free: 10.92 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000242/0.3719, allocations: 224.5 kB / 0.5209 GB, free: 10.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.174e-06/0.3719, allocations: 0 / 0.5209 GB, free: 10.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004754/0.3724, allocations: 64.41 kB / 0.521 GB, free: 10.79 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.0006832/0.3731, allocations: 1.017 MB / 0.522 GB, free: 9.883 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003788/0.3735, allocations: 160.8 kB / 0.5221 GB, free: 9.832 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3735, allocations: 1.219 kB / 0.5221 GB, free: 9.832 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001459/0.3736, allocations: 71.12 kB / 0.5222 GB, free: 9.809 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007853/0.3744, allocations: 95.77 kB / 0.5223 GB, free: 9.773 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004071/0.3785, allocations: 3.267 MB / 0.5255 GB, free: 7.449 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003774/0.3789, allocations: 0.8004 MB / 0.5263 GB, free: 6.742 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000208/0.3791, allocations: 57.02 kB / 0.5263 GB, free: 6.727 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001512/0.3793, allocations: 109.1 kB / 0.5264 GB, free: 6.645 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3793, allocations: 1.375 kB / 0.5264 GB, free: 6.645 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02703/0.4063, allocations: 6.83 MB / 0.5331 GB, free: 4.945 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.062/8.468, allocations: 6 kB / 0.5331 GB, free: 4.941 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 & /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