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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 115.7 kB / 17.75 MB, free: 5.309 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.001623/0.001623, allocations: 189.6 kB / 18.67 MB, free: 4.395 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.355/1.355, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1802/0.1802, allocations: 38.05 MB / 330.6 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 63.91 kB / 458.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.3438, allocations: 58.05 MB / 0.5048 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005802/0.3497, allocations: 4.538 MB / 0.5092 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001937/0.3517, allocations: 1.497 MB / 0.5107 GB, free: 3.547 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002453/0.3519, allocations: 13.34 kB / 0.5107 GB, free: 3.543 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004404/0.3524, allocations: 118 kB / 0.5108 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006197/0.353, allocations: 284.6 kB / 0.5111 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002801/0.3533, allocations: 103.2 kB / 0.5112 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007095/0.354, allocations: 0.5027 MB / 0.5116 GB, free: 3.027 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002624/0.3543, allocations: 164.5 kB / 0.5118 GB, free: 2.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002775/0.3546, allocations: 201.2 kB / 0.512 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003137/0.3549, allocations: 212.3 kB / 0.5122 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.886e-05/0.355, allocations: 29.56 kB / 0.5122 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.786e-05/0.3551, allocations: 26.47 kB / 0.5122 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.3552, allocations: 100.8 kB / 0.5123 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000172/0.3554, allocations: 188.2 kB / 0.5125 GB, free: 2.617 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004581/0.3558, allocations: 380.5 kB / 0.5129 GB, free: 2.461 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3558, allocations: 0.6562 kB / 0.5129 GB, free: 2.461 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3558, allocations: 0 / 0.5129 GB, free: 2.461 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.3559, allocations: 0.9688 kB / 0.5129 GB, free: 2.461 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.001007/0.3569, allocations: 0.6609 MB / 0.5135 GB, free: 1.926 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.3569, allocations: 13.69 kB / 0.5135 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.887e-05/0.357, allocations: 39.81 kB / 0.5136 GB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005771/0.3576, allocations: 409 kB / 0.514 GB, free: 1.605 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.316e-05/0.3576, allocations: 23.22 kB / 0.514 GB, free: 1.594 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.271e-05/0.3577, allocations: 25.56 kB / 0.514 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004987/0.3582, allocations: 336.6 kB / 0.5143 GB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.3582, allocations: 1.188 kB / 0.5143 GB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.84e-05/0.3582, allocations: 11.41 kB / 0.5144 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.3583, allocations: 10.81 kB / 0.5144 GB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000343/0.3586, allocations: 206.8 kB / 0.5146 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001394/0.36, allocations: 1.483 MB / 0.516 GB, free: 56 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004318/0.3605, allocations: 202.4 kB / 0.5162 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.3606, allocations: 73.66 kB / 0.5163 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.434e-05/0.3606, allocations: 7.984 kB / 0.5163 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.3607, allocations: 37.55 kB / 0.5163 GB, free: 15.81 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.803e-06/0.3607, allocations: 0 / 0.5163 GB, free: 15.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001169/0.3618, allocations: 0.6779 MB / 0.517 GB, free: 15.29 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.894e-05/0.3619, allocations: 140.3 kB / 0.5171 GB, free: 15.13 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003362/0.3623, allocations: 315.4 kB / 0.5174 GB, free: 14.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/0.3623, allocations: 32 kB / 0.5174 GB, free: 14.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.3625, allocations: 214.4 kB / 0.5176 GB, free: 14.74 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.733e-05/0.3626, allocations: 64.75 kB / 0.5177 GB, free: 14.69 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.212e-05/0.3626, allocations: 48.28 kB / 0.5178 GB, free: 14.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.3628, allocations: 349.7 kB / 0.5181 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.42e-05/0.3629, allocations: 49.09 kB / 0.5181 GB, free: 14.31 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.3631, allocations: 154.9 kB / 0.5183 GB, free: 14.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002849/0.3634, allocations: 225 kB / 0.5185 GB, free: 13.97 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3634, allocations: 1.375 kB / 0.5185 GB, free: 13.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004848/0.3639, allocations: 256.8 kB / 0.5187 GB, free: 13.85 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.3639, allocations: 7.219 kB / 0.5187 GB, free: 13.85 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.3639, allocations: 3.281 kB / 0.5188 GB, free: 13.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.449e-05/0.3639, allocations: 9.188 kB / 0.5188 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003789/0.3643, allocations: 78.48 kB / 0.5188 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009644/0.3653, allocations: 1.375 MB / 0.5202 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001689/0.3655, allocations: 8.844 kB / 0.5202 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.907e-05/0.3655, allocations: 11.39 kB / 0.5202 GB, free: 12.39 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.0002166/0.3657, allocations: 169.8 kB / 0.5204 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.3659, allocations: 38.25 kB / 0.5204 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003753/0.3662, allocations: 184.3 kB / 0.5206 GB, free: 12.13 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.3662, allocations: 3.031 kB / 0.5206 GB, free: 12.13 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3663, allocations: 6.219 kB / 0.5206 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.3663, allocations: 6.359 kB / 0.5206 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008953/0.3672, allocations: 0.5374 MB / 0.5211 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.3672, allocations: 1.062 kB / 0.5211 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002286/0.3674, allocations: 42.81 kB / 0.5212 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3674, allocations: 1.094 kB / 0.5212 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.991e-05/0.3675, allocations: 7.031 kB / 0.5212 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.3675, allocations: 3.344 kB / 0.5212 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3675, allocations: 5.219 kB / 0.5212 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005387/0.368, allocations: 498.9 kB / 0.5216 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.728e-05/0.3681, allocations: 110.4 kB / 0.5218 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.241e-05/0.3682, allocations: 7.5 kB / 0.5218 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.3684, allocations: 10.62 kB / 0.5218 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.251e-05/0.3684, allocations: 21.77 kB / 0.5218 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.3684, allocations: 5.75 kB / 0.5218 GB, free: 11.19 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002633/0.3687, allocations: 224.1 kB / 0.522 GB, free: 11.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.3687, allocations: 0 / 0.522 GB, free: 11.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004382/0.3692, allocations: 56.31 kB / 0.5221 GB, free: 11.06 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.000113/0.3693, allocations: 103.7 kB / 0.5222 GB, free: 10.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000418/0.3697, allocations: 172.5 kB / 0.5223 GB, free: 10.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3697, allocations: 0 / 0.5223 GB, free: 10.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.3698, allocations: 66.42 kB / 0.5224 GB, free: 10.89 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00076/0.3706, allocations: 87.33 kB / 0.5225 GB, free: 10.86 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/0.3721, allocations: 0.8538 MB / 0.5233 GB, free: 10.3 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004075/0.3726, allocations: 0.8012 MB / 0.5241 GB, free: 9.598 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.656e-05/0.3726, allocations: 27.09 kB / 0.5241 GB, free: 9.59 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3726, allocations: 0 / 0.5241 GB, free: 9.59 MB / 398.1 MB Notification: Performance of Templates: time 0.008723/0.3814, allocations: 4.74 MB / 0.5287 GB, free: 8.91 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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