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.0009746/0.0009746, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001652/0.001652, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.014/1.014, allocations: 177.1 MB / 205 MB, free: 5.613 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.2571/0.2571, allocations: 29.42 MB / 290.9 MB, free: 2.508 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 1.933e-06/1.933e-06, allocations: 0 / 369.6 MB, free: 11.01 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.736e-05/2.929e-05, allocations: 2.312 kB / 369.6 MB, free: 11 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005905/0.005934, allocations: 4.846 MB / 374.5 MB, free: 6.125 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002959/0.008893, allocations: 1.585 MB / 376.1 MB, free: 4.535 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004571/0.00935, allocations: 27.75 kB / 376.1 MB, free: 4.508 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004934/0.009844, allocations: 111.1 kB / 376.2 MB, free: 4.398 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001069/0.01091, allocations: 325.8 kB / 376.5 MB, free: 4.078 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004923/0.0114, allocations: 151.7 kB / 376.7 MB, free: 3.93 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001052/0.01246, allocations: 0.7119 MB / 377.4 MB, free: 3.215 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005476/0.013, allocations: 352.4 kB / 377.7 MB, free: 2.871 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007941/0.0138, allocations: 423 kB / 378.1 MB, free: 2.457 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005043/0.0143, allocations: 247.3 kB / 378.4 MB, free: 2.215 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001062/0.01441, allocations: 48 kB / 378.4 MB, free: 2.168 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001098/0.01452, allocations: 44 kB / 378.5 MB, free: 2.125 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000167/0.01469, allocations: 167.5 kB / 378.6 MB, free: 1.961 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002464/0.01493, allocations: 183.6 kB / 378.8 MB, free: 1.781 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006563/0.01559, allocations: 390.6 kB / 379.2 MB, free: 1.398 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.01559, allocations: 3.938 kB / 379.2 MB, free: 1.395 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.01559, allocations: 4 kB / 379.2 MB, free: 1.391 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.606e-05/0.01561, allocations: 0 / 379.2 MB, free: 1.391 MB / 346.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.001354/0.01696, allocations: 0.8095 MB / 380 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.01701, allocations: 11.98 kB / 380 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.01716, allocations: 88.61 kB / 380.1 MB, free: 452 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006632/0.01783, allocations: 407.7 kB / 380.5 MB, free: 20 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/0.01795, allocations: 92.91 kB / 380.6 MB, free: 15.92 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.656e-05/0.01803, allocations: 44.12 kB / 380.6 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007122/0.01874, allocations: 414 kB / 381 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.68e-05/0.01877, allocations: 11.89 kB / 381.1 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.975e-05/0.01881, allocations: 16 kB / 381.1 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.661e-05/0.01883, allocations: 8 kB / 381.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004046/0.01923, allocations: 173.7 kB / 381.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002316/0.02155, allocations: 2.136 MB / 383.4 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003346/0.02188, allocations: 173.1 kB / 383.6 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.02199, allocations: 71.09 kB / 383.6 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.02202, allocations: 8 kB / 383.6 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.111e-05/0.02206, allocations: 45.33 kB / 383.7 MB, free: 12.62 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 2.965e-06/0.02206, allocations: 0 / 383.7 MB, free: 12.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.001298/0.02336, allocations: 0.6534 MB / 384.3 MB, free: 11.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.972e-05/0.02342, allocations: 106.8 kB / 384.4 MB, free: 11.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003474/0.02376, allocations: 350.2 kB / 384.8 MB, free: 11.44 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.02379, allocations: 29.7 kB / 384.8 MB, free: 11.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002033/0.02399, allocations: 331.1 kB / 385.1 MB, free: 11.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.848e-05/0.02406, allocations: 83.33 kB / 385.2 MB, free: 11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.02417, allocations: 79.3 kB / 385.3 MB, free: 10.91 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.02434, allocations: 0.5157 MB / 385.8 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.02445, allocations: 39.97 kB / 385.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.02465, allocations: 229.7 kB / 386.1 MB, free: 10.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004915/0.02514, allocations: 371.5 kB / 386.4 MB, free: 9.594 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.02515, allocations: 0 / 386.4 MB, free: 9.594 MB / 362.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000644/0.02579, allocations: 340.8 kB / 386.8 MB, free: 9.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.02582, allocations: 4 kB / 386.8 MB, free: 9.246 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.02583, allocations: 11.98 kB / 386.8 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000369/0.0262, allocations: 75.81 kB / 386.9 MB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002107/0.02641, allocations: 63.92 kB / 386.9 MB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001846/0.02825, allocations: 2.231 MB / 389.1 MB, free: 6.738 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001824/0.02844, allocations: 11.94 kB / 389.2 MB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.904e-05/0.02846, allocations: 24.03 kB / 389.2 MB, free: 6.703 MB / 362.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.0001753/0.02864, allocations: 180.5 kB / 389.4 MB, free: 6.516 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.3e-05/0.02872, allocations: 39.77 kB / 389.4 MB, free: 6.477 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.457e-05/0.02878, allocations: 43.09 kB / 389.4 MB, free: 6.438 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.626e-06/0.02878, allocations: 0 / 389.4 MB, free: 6.438 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.02879, allocations: 4 kB / 389.4 MB, free: 6.434 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.02879, allocations: 0 / 389.4 MB, free: 6.434 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009348/0.02973, allocations: 0.6098 MB / 390.1 MB, free: 5.773 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.02973, allocations: 3.984 kB / 390.1 MB, free: 5.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000205/0.02994, allocations: 47.92 kB / 390.1 MB, free: 5.723 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001038/0.03004, allocations: 23.61 kB / 390.1 MB, free: 5.695 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.03006, allocations: 4 kB / 390.1 MB, free: 5.691 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009584/0.03102, allocations: 1.728 MB / 391.9 MB, free: 3.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.03102, allocations: 4 kB / 391.9 MB, free: 3.836 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005065/0.03153, allocations: 0.5017 MB / 392.4 MB, free: 3.301 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.147e-05/0.03161, allocations: 39.8 kB / 392.4 MB, free: 3.262 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.644e-05/0.03164, allocations: 7.984 kB / 392.4 MB, free: 3.254 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.03181, allocations: 8 kB / 392.4 MB, free: 3.246 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.928e-05/0.03188, allocations: 19.91 kB / 392.4 MB, free: 3.227 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/0.0319, allocations: 12 kB / 392.4 MB, free: 3.215 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001982/0.0321, allocations: 231 kB / 392.7 MB, free: 2.988 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.0321, allocations: 0 / 392.7 MB, free: 2.988 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006054/0.03271, allocations: 88 kB / 392.8 MB, free: 2.902 MB / 362.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 0.0001267/0.03283, allocations: 103.2 kB / 392.9 MB, free: 2.793 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006021/0.03344, allocations: 364.6 kB / 393.2 MB, free: 2.418 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.03344, allocations: 0 / 393.2 MB, free: 2.418 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002586/0.0337, allocations: 254.9 kB / 393.5 MB, free: 2.148 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006399/0.03434, allocations: 96.28 kB / 393.6 MB, free: 2.062 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002022/0.03636, allocations: 0.8373 MB / 394.4 MB, free: 1.176 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.892e-05/0.03645, allocations: 133.2 kB / 394.5 MB, free: 1.023 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001155/0.03656, allocations: 51.25 kB / 394.6 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.276e-05/0.03662, allocations: 28.5 kB / 394.6 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of SimCode: time 9.41e-07/0.03662, allocations: 0 / 394.6 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of Templates: time 0.007132/0.04375, allocations: 4.284 MB / 398.9 MB, free: 12.75 MB / 378.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.2173855947330594]