Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 112.7 kB / 17.75 MB, free: 5.305 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.00134/0.00134, allocations: 183 kB / 18.68 MB, free: 4.383 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.345/1.345, allocations: 222.9 MB / 242.4 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1878/0.1878, allocations: 38.04 MB / 330.6 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 67.88 kB / 458.8 MB, free: 6.867 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3001/0.3015, allocations: 58.05 MB / 0.5048 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006884/0.3084, allocations: 5.263 MB / 0.5099 GB, free: 4.125 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002486/0.311, allocations: 1.568 MB / 0.5114 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004627/0.3114, allocations: 19.69 kB / 0.5115 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004892/0.3119, allocations: 122 kB / 0.5116 GB, free: 2.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001006/0.313, allocations: 328.3 kB / 0.5119 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004554/0.3135, allocations: 150.8 kB / 0.512 GB, free: 2.648 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.3145, allocations: 0.6972 MB / 0.5127 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006088/0.3151, allocations: 449.9 kB / 0.5131 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005337/0.3157, allocations: 289.4 kB / 0.5134 GB, free: 2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005325/0.3162, allocations: 293.8 kB / 0.5137 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001108/0.3163, allocations: 45.56 kB / 0.5137 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001633/0.3165, allocations: 46.72 kB / 0.5138 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001802/0.3167, allocations: 151.1 kB / 0.5139 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003174/0.317, allocations: 268.7 kB / 0.5142 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007365/0.3177, allocations: 0.602 MB / 0.5148 GB, free: 1.387 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.3178, allocations: 1.156 kB / 0.5148 GB, free: 1.387 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3178, allocations: 0 / 0.5148 GB, free: 1.387 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.3178, allocations: 0 / 0.5148 GB, free: 1.387 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001273/0.3191, allocations: 0.7915 MB / 0.5156 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.3191, allocations: 9.844 kB / 0.5156 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.3192, allocations: 55.5 kB / 0.5156 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000683/0.3199, allocations: 468.7 kB / 0.5161 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.649e-05/0.32, allocations: 62.91 kB / 0.5161 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.749e-05/0.3201, allocations: 53.27 kB / 0.5162 GB, free: 364 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007881/0.3209, allocations: 0.4975 MB / 0.5167 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/0.3209, allocations: 5.969 kB / 0.5167 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.922e-05/0.321, allocations: 16.19 kB / 0.5167 GB, free: 76 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.321, allocations: 10.66 kB / 0.5167 GB, free: 76 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006793/0.3217, allocations: 340.7 kB / 0.517 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002725/0.3244, allocations: 1.968 MB / 0.5189 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005321/0.325, allocations: 227.9 kB / 0.5192 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002269/0.3252, allocations: 93.42 kB / 0.5192 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.3253, allocations: 6.438 kB / 0.5193 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.3253, allocations: 37.81 kB / 0.5193 GB, free: 14.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 2.064e-06/0.3253, allocations: 0 / 0.5193 GB, free: 14.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001789/0.3271, allocations: 0.853 MB / 0.5201 GB, free: 13.61 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.761e-05/0.3272, allocations: 110.4 kB / 0.5202 GB, free: 13.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003604/0.3275, allocations: 335.8 kB / 0.5205 GB, free: 13.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.3276, allocations: 32 kB / 0.5206 GB, free: 13.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001739/0.3277, allocations: 273 kB / 0.5208 GB, free: 13.04 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.735e-05/0.3278, allocations: 84.92 kB / 0.5209 GB, free: 12.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.3279, allocations: 67.56 kB / 0.521 GB, free: 12.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.3281, allocations: 345.6 kB / 0.5213 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002042/0.3283, allocations: 85.14 kB / 0.5214 GB, free: 12.58 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000278/0.3286, allocations: 219.5 kB / 0.5216 GB, free: 12.38 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001213/0.3298, allocations: 0.5489 MB / 0.5221 GB, free: 11.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.758e-06/0.3298, allocations: 2.219 kB / 0.5221 GB, free: 11.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008715/0.3307, allocations: 414.5 kB / 0.5225 GB, free: 11.8 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.3307, allocations: 15.28 kB / 0.5226 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.3307, allocations: 4.344 kB / 0.5226 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003284/0.3311, allocations: 80.5 kB / 0.5226 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002505/0.3313, allocations: 66.22 kB / 0.5227 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001907/0.3332, allocations: 1.938 MB / 0.5246 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.3335, allocations: 14.22 kB / 0.5246 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.743e-05/0.3335, allocations: 18.55 kB / 0.5246 GB, free: 10 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002511/0.3338, allocations: 190.8 kB / 0.5248 GB, free: 9.848 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.946e-05/0.3339, allocations: 35.52 kB / 0.5248 GB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.112e-05/0.334, allocations: 42.33 kB / 0.5249 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.334, allocations: 2.531 kB / 0.5249 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.334, allocations: 4.797 kB / 0.5249 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.3341, allocations: 122.3 kB / 0.525 GB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.509e-05/0.3342, allocations: 6.312 kB / 0.525 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002117/0.3344, allocations: 11.08 kB / 0.525 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.254e-05/0.3345, allocations: 18.67 kB / 0.525 GB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008234/0.3353, allocations: 0.4896 MB / 0.5255 GB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007389/0.336, allocations: 0.6263 MB / 0.5261 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001912/0.3362, allocations: 88.36 kB / 0.5262 GB, free: 8.828 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002373/0.3365, allocations: 233.1 kB / 0.5264 GB, free: 8.703 MB / 398.1 MB Notification: Performance of Backend: time 2.31e-07/0.3365, allocations: 0 / 0.5264 GB, free: 8.703 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001029/0.3375, allocations: 378.3 kB / 0.5268 GB, free: 8.453 MB / 398.1 MB Notification: Performance of SimCode: time 0.001869/0.3394, allocations: 1.452 MB / 0.5282 GB, free: 7.379 MB / 398.1 MB Notification: Performance of Templates: time 0.01028/0.3497, allocations: 4.825 MB / 0.5329 GB, free: 6.188 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches