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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002013/0.002013, allocations: 168.8 kB / 24.91 MB, free: 9.199 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.065/1.065, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2441/0.2441, allocations: 29.42 MB / 291.2 MB, free: 2.426 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 0 / 316.8 MB, free: 4 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.997e-05/3.209e-05, allocations: 3.625 kB / 316.8 MB, free: 0 / 282.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.00578/0.005812, allocations: 4.821 MB / 321.7 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002033/0.007845, allocations: 1.601 MB / 323.3 MB, free: 9.543 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002351/0.00808, allocations: 27.75 kB / 323.3 MB, free: 9.516 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003521/0.008433, allocations: 115.2 kB / 323.4 MB, free: 9.402 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006298/0.009062, allocations: 313.8 kB / 323.7 MB, free: 9.094 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002834/0.009346, allocations: 163.6 kB / 323.9 MB, free: 8.934 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006561/0.01, allocations: 0.7198 MB / 324.6 MB, free: 8.211 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003617/0.01036, allocations: 350.4 kB / 324.9 MB, free: 7.863 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004332/0.0108, allocations: 430.9 kB / 325.4 MB, free: 7.441 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002815/0.01108, allocations: 239.3 kB / 325.6 MB, free: 7.207 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.005e-05/0.01113, allocations: 48 kB / 325.6 MB, free: 7.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.454e-05/0.01118, allocations: 44 kB / 325.7 MB, free: 7.117 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001252/0.01131, allocations: 167.5 kB / 325.8 MB, free: 6.953 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000164/0.01147, allocations: 183.6 kB / 326 MB, free: 6.773 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003651/0.01184, allocations: 386.7 kB / 326.4 MB, free: 6.395 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.794e-06/0.01184, allocations: 0 / 326.4 MB, free: 6.395 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.01184, allocations: 0 / 326.4 MB, free: 6.395 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.01185, allocations: 0 / 326.4 MB, free: 6.395 MB / 298.7 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.0007842/0.01263, allocations: 0.6847 MB / 327.1 MB, free: 5.684 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.01267, allocations: 15.98 kB / 327.1 MB, free: 5.668 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.01278, allocations: 64.89 kB / 327.2 MB, free: 5.605 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005062/0.01329, allocations: 362.3 kB / 327.5 MB, free: 5.227 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.345e-05/0.01337, allocations: 80.97 kB / 327.6 MB, free: 5.137 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.928e-05/0.01343, allocations: 48.12 kB / 327.6 MB, free: 5.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003849/0.01381, allocations: 376.4 kB / 328 MB, free: 4.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.01383, allocations: 0 / 328 MB, free: 4.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.899e-05/0.01386, allocations: 31.97 kB / 328 MB, free: 4.648 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.01387, allocations: 8 kB / 328 MB, free: 4.641 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001553/0.01402, allocations: 133.6 kB / 328.2 MB, free: 4.508 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.01529, allocations: 1.57 MB / 329.7 MB, free: 2.852 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002049/0.01549, allocations: 190.9 kB / 329.9 MB, free: 2.637 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.2e-05/0.01554, allocations: 46.62 kB / 330 MB, free: 2.582 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.01556, allocations: 4 kB / 330 MB, free: 2.578 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.01559, allocations: 42.55 kB / 330 MB, free: 2.527 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.683e-06/0.01559, allocations: 0 / 330 MB, free: 2.527 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006342/0.01622, allocations: 411.9 kB / 330.4 MB, free: 2.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.597e-05/0.01627, allocations: 110.8 kB / 330.5 MB, free: 1.957 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001886/0.01646, allocations: 294.8 kB / 330.8 MB, free: 1.656 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.01647, allocations: 25.7 kB / 330.8 MB, free: 1.625 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.01658, allocations: 252.6 kB / 331.1 MB, free: 1.375 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.829e-05/0.01663, allocations: 87.25 kB / 331.2 MB, free: 1.289 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.455e-05/0.01669, allocations: 65.88 kB / 331.2 MB, free: 1.219 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.786e-05/0.01679, allocations: 350.7 kB / 331.6 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.554e-05/0.01684, allocations: 31.53 kB / 331.6 MB, free: 0.832 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.01694, allocations: 169 kB / 331.8 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002552/0.0172, allocations: 281.1 kB / 332.1 MB, free: 280 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.0172, allocations: 4 kB / 332.1 MB, free: 276 kB / 298.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004111/0.01761, allocations: 273.1 kB / 332.3 MB, free: 15.99 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.01763, allocations: 8 kB / 332.3 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.01763, allocations: 4 kB / 332.3 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002076/0.01784, allocations: 75.56 kB / 332.4 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.01798, allocations: 67.91 kB / 332.5 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001083/0.01906, allocations: 1.612 MB / 334.1 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.904e-05/0.01915, allocations: 12 kB / 334.1 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/0.01916, allocations: 12 kB / 334.1 MB, free: 14.11 MB / 314.7 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.0001106/0.01927, allocations: 143.4 kB / 334.3 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.072e-05/0.01931, allocations: 27.98 kB / 334.3 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.719e-05/0.01935, allocations: 39.11 kB / 334.3 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.01935, allocations: 4 kB / 334.3 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.01936, allocations: 7.984 kB / 334.3 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.01936, allocations: 0 / 334.3 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004782/0.01984, allocations: 450.7 kB / 334.8 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.01984, allocations: 8.031 kB / 334.8 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.01996, allocations: 39.97 kB / 334.8 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.757e-05/0.02003, allocations: 20.84 kB / 334.8 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.117e-05/0.02004, allocations: 11.92 kB / 334.9 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005585/0.0206, allocations: 1.154 MB / 336 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.0206, allocations: 7.875 kB / 336 MB, free: 12.08 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002786/0.02088, allocations: 399.1 kB / 336.4 MB, free: 11.67 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.651e-05/0.02093, allocations: 35.75 kB / 336.4 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.066e-05/0.02095, allocations: 4 kB / 336.4 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.304e-05/0.02103, allocations: 7.984 kB / 336.4 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.827e-05/0.02108, allocations: 27.84 kB / 336.5 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.02109, allocations: 8 kB / 336.5 MB, free: 11.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.346e-05/0.02117, allocations: 100.6 kB / 336.6 MB, free: 11.48 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02117, allocations: 4.031 kB / 336.6 MB, free: 11.48 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00027/0.02144, allocations: 84 kB / 336.7 MB, free: 11.4 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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 (21): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 9.467e-05/0.02154, allocations: 80.42 kB / 336.7 MB, free: 11.31 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003175/0.02185, allocations: 288.1 kB / 337 MB, free: 11.01 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/0.02187, allocations: 8 kB / 337 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000141/0.02201, allocations: 179.3 kB / 337.2 MB, free: 10.81 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003305/0.02234, allocations: 94.16 kB / 337.3 MB, free: 10.72 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.02365, allocations: 0.819 MB / 338.1 MB, free: 9.867 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.071e-05/0.02374, allocations: 121.3 kB / 338.2 MB, free: 9.727 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 9.59e-05/0.02384, allocations: 47.27 kB / 338.3 MB, free: 9.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.02397, allocations: 115.3 kB / 338.4 MB, free: 9.566 MB / 314.7 MB Notification: Performance of SimCode: time 1.082e-06/0.02398, allocations: 0 / 338.4 MB, free: 9.566 MB / 314.7 MB Notification: Performance of Templates: time 0.01052/0.0345, allocations: 4.387 MB / 342.8 MB, free: 5.281 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.139715317171067]