Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 177.3 kB / 16.71 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.233/1.233, allocations: 225.7 MB / 243.2 MB, free: 8.457 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008075/0.0008075, allocations: 102.2 kB / 294.4 MB, free: 9.5 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.27/0.27, allocations: 38.17 MB / 383.7 MB, free: 40.38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002734/0.0002735, allocations: 8.219 kB / 453.5 MB, free: 8.793 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2502, allocations: 59.15 MB / 0.5007 GB, free: 39 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.006606/0.2568, allocations: 4.669 MB / 0.5052 GB, free: 38.45 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003249/0.2601, allocations: 1.993 MB / 0.5072 GB, free: 36.97 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003897/0.2605, allocations: 27.12 kB / 0.5072 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000468/0.261, allocations: 101.7 kB / 0.5073 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007913/0.2618, allocations: 252.2 kB / 0.5075 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003552/0.2622, allocations: 93.03 kB / 0.5076 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001006/0.2632, allocations: 0.6407 MB / 0.5083 GB, free: 36.47 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002989/0.2635, allocations: 134.5 kB / 0.5084 GB, free: 36.43 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000315/0.2639, allocations: 167.3 kB / 0.5086 GB, free: 36.36 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003861/0.2643, allocations: 206.8 kB / 0.5087 GB, free: 36.28 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.07e-05/0.2643, allocations: 14.53 kB / 0.5088 GB, free: 36.28 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.395e-05/0.2644, allocations: 14.66 kB / 0.5088 GB, free: 36.28 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.2646, allocations: 83.27 kB / 0.5089 GB, free: 36.25 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002243/0.2648, allocations: 195.7 kB / 0.509 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004852/0.2653, allocations: 363.3 kB / 0.5094 GB, free: 35.99 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2653, allocations: 0.7812 kB / 0.5094 GB, free: 35.99 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2653, allocations: 0 / 0.5094 GB, free: 35.99 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.633e-06/0.2654, allocations: 1.781 kB / 0.5094 GB, free: 35.99 MB / 378.7 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.001033/0.2664, allocations: 0.5915 MB / 0.51 GB, free: 35.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.2665, allocations: 8.656 kB / 0.51 GB, free: 35.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.418e-05/0.2666, allocations: 45 kB / 0.51 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007111/0.2673, allocations: 383.5 kB / 0.5104 GB, free: 35.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.171e-05/0.2673, allocations: 23.73 kB / 0.5104 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.71e-05/0.2674, allocations: 29.55 kB / 0.5104 GB, free: 35.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000632/0.2681, allocations: 334.7 kB / 0.5108 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.2681, allocations: 4.828 kB / 0.5108 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/0.2681, allocations: 14 kB / 0.5108 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.2682, allocations: 5.062 kB / 0.5108 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000485/0.2687, allocations: 204.3 kB / 0.511 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.2704, allocations: 1.495 MB / 0.5124 GB, free: 33.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004742/0.2709, allocations: 206 kB / 0.5126 GB, free: 33.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.271, allocations: 79.36 kB / 0.5127 GB, free: 33.44 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.2711, allocations: 0 / 0.5127 GB, free: 33.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.2711, allocations: 41.28 kB / 0.5127 GB, free: 33.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=17): time 1.824e-06/0.2711, allocations: 4 kB / 0.5127 GB, free: 33.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=18): time 0.001262/0.2724, allocations: 0.6763 MB / 0.5134 GB, free: 32.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/0.2724, allocations: 135.5 kB / 0.5135 GB, free: 32.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003538/0.2728, allocations: 314.5 kB / 0.5138 GB, free: 32.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.2728, allocations: 29.7 kB / 0.5139 GB, free: 32.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.273, allocations: 221.7 kB / 0.5141 GB, free: 32.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.305e-05/0.273, allocations: 66.5 kB / 0.5141 GB, free: 32.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.336e-05/0.2731, allocations: 4 kB / 0.5141 GB, free: 32.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.806e-05/0.2731, allocations: 342.1 kB / 0.5145 GB, free: 31.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.2733, allocations: 51.8 kB / 0.5145 GB, free: 31.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.2734, allocations: 147.5 kB / 0.5147 GB, free: 31.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003155/0.2738, allocations: 218.8 kB / 0.5149 GB, free: 31.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2738, allocations: 0 / 0.5149 GB, free: 31.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004856/0.2743, allocations: 256.7 kB / 0.5151 GB, free: 31.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.2743, allocations: 11.66 kB / 0.5151 GB, free: 31.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.2743, allocations: 11.38 kB / 0.5151 GB, free: 31.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.191e-05/0.2744, allocations: 6.312 kB / 0.5151 GB, free: 31.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005209/0.2749, allocations: 78.59 kB / 0.5152 GB, free: 31.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006931/0.2756, allocations: 1.285 MB / 0.5165 GB, free: 30.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002262/0.2759, allocations: 7.062 kB / 0.5165 GB, free: 30.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.596e-05/0.2759, allocations: 16.03 kB / 0.5165 GB, free: 30.1 MB / 378.7 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.0001795/0.2761, allocations: 165 kB / 0.5167 GB, free: 29.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.2762, allocations: 38.25 kB / 0.5167 GB, free: 29.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003758/0.2766, allocations: 178.9 kB / 0.5169 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.2766, allocations: 2.844 kB / 0.5169 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2766, allocations: 6.391 kB / 0.5169 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.2767, allocations: 0 / 0.5169 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009135/0.2776, allocations: 0.5446 MB / 0.5174 GB, free: 29.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.2776, allocations: 2.969 kB / 0.5174 GB, free: 29.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003338/0.2779, allocations: 44.12 kB / 0.5174 GB, free: 29.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.278, allocations: 0 / 0.5174 GB, free: 29.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.029e-05/0.278, allocations: 6.594 kB / 0.5175 GB, free: 29.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.278, allocations: 3.031 kB / 0.5175 GB, free: 29.42 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.278, allocations: 0 / 0.5175 GB, free: 29.42 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004945/0.2785, allocations: 498.8 kB / 0.5179 GB, free: 29.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.601e-05/0.2786, allocations: 109.6 kB / 0.518 GB, free: 28.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.276e-05/0.2787, allocations: 1.25 kB / 0.518 GB, free: 28.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003542/0.279, allocations: 6.5 kB / 0.518 GB, free: 28.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.74e-05/0.2791, allocations: 12.97 kB / 0.5181 GB, free: 28.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.2791, allocations: 12.53 kB / 0.5181 GB, free: 28.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002571/0.2794, allocations: 219.1 kB / 0.5183 GB, free: 28.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.2794, allocations: 1 kB / 0.5183 GB, free: 28.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007001/0.2801, allocations: 64.09 kB / 0.5183 GB, free: 28.78 MB / 378.7 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.0001097/0.2802, allocations: 116.3 kB / 0.5184 GB, free: 28.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004469/0.2807, allocations: 152.2 kB / 0.5186 GB, free: 28.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2807, allocations: 0.875 kB / 0.5186 GB, free: 28.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001431/0.2809, allocations: 62.55 kB / 0.5187 GB, free: 28.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0011/0.282, allocations: 84.38 kB / 0.5187 GB, free: 28.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.2837, allocations: 1.038 MB / 0.5197 GB, free: 27.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002767/0.284, allocations: 0.8007 MB / 0.5205 GB, free: 27.22 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002774/0.2843, allocations: 54.55 kB / 0.5206 GB, free: 27.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.906e-05/0.2844, allocations: 26.19 kB / 0.5206 GB, free: 27.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.182e-06/0.2844, allocations: 0 / 0.5206 GB, free: 27.2 MB / 378.7 MB Notification: Performance of Templates: time 0.009211/0.2937, allocations: 3.06 MB / 0.5236 GB, free: 26.93 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches