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.001258/0.001258, allocations: 109.9 kB / 17.06 MB, free: 6.012 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.001332/0.001332, allocations: 191 kB / 18 MB, free: 5.094 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.475/1.475, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1825/0.1825, allocations: 38.05 MB / 329.9 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 63.89 kB / 458.2 MB, free: 6.879 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.414/0.4155, allocations: 58.04 MB / 0.5041 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.007795/0.4233, allocations: 4.526 MB / 0.5085 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002318/0.4257, allocations: 1.493 MB / 0.51 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003144/0.426, allocations: 17.12 kB / 0.51 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006044/0.4267, allocations: 117.9 kB / 0.5101 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008877/0.4277, allocations: 285.8 kB / 0.5104 GB, free: 3.371 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003264/0.428, allocations: 111.2 kB / 0.5105 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007079/0.4287, allocations: 0.5027 MB / 0.511 GB, free: 3.082 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002785/0.429, allocations: 163.2 kB / 0.5111 GB, free: 3.023 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002814/0.4293, allocations: 201.3 kB / 0.5113 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003192/0.4296, allocations: 216.2 kB / 0.5115 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.255e-05/0.4297, allocations: 26.16 kB / 0.5116 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.547e-05/0.4298, allocations: 30.5 kB / 0.5116 GB, free: 2.832 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001309/0.4299, allocations: 97.73 kB / 0.5117 GB, free: 2.789 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002035/0.4301, allocations: 184 kB / 0.5119 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005414/0.4307, allocations: 379.8 kB / 0.5122 GB, free: 2.523 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.4307, allocations: 0 / 0.5122 GB, free: 2.523 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.4307, allocations: 2.281 kB / 0.5122 GB, free: 2.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.4307, allocations: 0 / 0.5122 GB, free: 2.523 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.00108/0.4318, allocations: 0.6626 MB / 0.5129 GB, free: 1.984 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.4318, allocations: 12.77 kB / 0.5129 GB, free: 1.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.689e-05/0.4319, allocations: 44.38 kB / 0.5129 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006585/0.4326, allocations: 405.1 kB / 0.5133 GB, free: 1.664 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.488e-05/0.4326, allocations: 23.5 kB / 0.5133 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.199e-05/0.4327, allocations: 25.91 kB / 0.5134 GB, free: 1.645 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005294/0.4332, allocations: 335.6 kB / 0.5137 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.4333, allocations: 1.875 kB / 0.5137 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.074e-05/0.4333, allocations: 16.45 kB / 0.5137 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.4333, allocations: 6.625 kB / 0.5137 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003608/0.4337, allocations: 210.9 kB / 0.5139 GB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001388/0.4351, allocations: 1.484 MB / 0.5153 GB, free: 108 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000408/0.4355, allocations: 201.6 kB / 0.5155 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.4356, allocations: 75.23 kB / 0.5156 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/0.4357, allocations: 2.188 kB / 0.5156 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.4357, allocations: 45.16 kB / 0.5157 GB, free: 15.86 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.643e-06/0.4357, allocations: 0.7188 kB / 0.5157 GB, free: 15.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001142/0.4369, allocations: 0.679 MB / 0.5163 GB, free: 15.35 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.353e-05/0.437, allocations: 135.5 kB / 0.5165 GB, free: 15.19 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003131/0.4373, allocations: 320.2 kB / 0.5168 GB, free: 15.01 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.4373, allocations: 29.7 kB / 0.5168 GB, free: 14.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.4375, allocations: 216.6 kB / 0.517 GB, free: 14.8 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.37e-05/0.4375, allocations: 61.33 kB / 0.517 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.255e-05/0.4376, allocations: 48.33 kB / 0.5171 GB, free: 14.72 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.4377, allocations: 347.7 kB / 0.5174 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.99e-05/0.4378, allocations: 54.05 kB / 0.5175 GB, free: 14.37 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001918/0.438, allocations: 148.4 kB / 0.5176 GB, free: 14.22 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003286/0.4384, allocations: 223.9 kB / 0.5178 GB, free: 14.04 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.4384, allocations: 0.6875 kB / 0.5178 GB, free: 14.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004494/0.4389, allocations: 253.2 kB / 0.5181 GB, free: 13.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.4389, allocations: 6.5 kB / 0.5181 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.4389, allocations: 4.188 kB / 0.5181 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.356e-05/0.4389, allocations: 9.625 kB / 0.5181 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003708/0.4393, allocations: 80.47 kB / 0.5182 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008871/0.4402, allocations: 1.379 MB / 0.5195 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001527/0.4404, allocations: 13.16 kB / 0.5195 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.67e-05/0.4404, allocations: 9.703 kB / 0.5195 GB, free: 12.45 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.0002212/0.4406, allocations: 170 kB / 0.5197 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.4407, allocations: 35.44 kB / 0.5197 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003831/0.4411, allocations: 188.3 kB / 0.5199 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.4411, allocations: 3.281 kB / 0.5199 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.4412, allocations: 1.094 kB / 0.5199 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.4412, allocations: 6.438 kB / 0.5199 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008655/0.442, allocations: 0.5372 MB / 0.5205 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.4421, allocations: 5.281 kB / 0.5205 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002331/0.4423, allocations: 43.69 kB / 0.5205 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.4423, allocations: 1.281 kB / 0.5205 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.4423, allocations: 7.047 kB / 0.5205 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.4423, allocations: 2.281 kB / 0.5205 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.4423, allocations: 2.469 kB / 0.5205 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004712/0.4428, allocations: 0.4928 MB / 0.521 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.046e-05/0.4429, allocations: 109.5 kB / 0.5211 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.559e-05/0.4429, allocations: 8.734 kB / 0.5211 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001947/0.4431, allocations: 1.062 kB / 0.5211 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.711e-05/0.4432, allocations: 27.27 kB / 0.5211 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.306e-05/0.4432, allocations: 5.234 kB / 0.5211 GB, free: 11.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002226/0.4434, allocations: 219.8 kB / 0.5213 GB, free: 11.13 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4435, allocations: 0 / 0.5213 GB, free: 11.13 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000433/0.4439, allocations: 60.94 kB / 0.5214 GB, free: 11.12 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.0001251/0.444, allocations: 103.7 kB / 0.5215 GB, free: 11.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003884/0.4444, allocations: 164.8 kB / 0.5217 GB, free: 10.97 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4444, allocations: 0 / 0.5217 GB, free: 10.97 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.4446, allocations: 66.69 kB / 0.5217 GB, free: 10.95 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007121/0.4453, allocations: 102.2 kB / 0.5218 GB, free: 10.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001589/0.4469, allocations: 0.8192 MB / 0.5226 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004371/0.4473, allocations: 0.8054 MB / 0.5234 GB, free: 9.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001906/0.4475, allocations: 49.95 kB / 0.5235 GB, free: 9.668 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.356e-05/0.4476, allocations: 26.06 kB / 0.5235 GB, free: 9.66 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4476, allocations: 1.312 kB / 0.5235 GB, free: 9.66 MB / 398.1 MB Notification: Performance of Templates: time 0.008822/0.4565, allocations: 3.247 MB / 0.5267 GB, free: 9.41 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","/var/lib/jenkins/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