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.001533/0.001533, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001876/0.001876, allocations: 161 kB / 24.56 MB, free: 16 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 0.9639/0.9639, allocations: 177.1 MB / 205 MB, free: 5.629 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.2859/0.2859, allocations: 29.42 MB / 290.9 MB, free: 2.5 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.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.443e-06/1.443e-06, allocations: 0 / 369.6 MB, free: 11.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.418e-05/2.562e-05, allocations: 2.312 kB / 369.6 MB, free: 11.02 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005042/0.005067, allocations: 4.843 MB / 374.5 MB, free: 6.141 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001949/0.007016, allocations: 1.577 MB / 376 MB, free: 4.559 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002537/0.00727, allocations: 27.75 kB / 376.1 MB, free: 4.531 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000346/0.007616, allocations: 115.1 kB / 376.2 MB, free: 4.418 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006189/0.008234, allocations: 317.9 kB / 376.5 MB, free: 4.105 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003004/0.008535, allocations: 155.7 kB / 376.6 MB, free: 3.953 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006522/0.009187, allocations: 0.7081 MB / 377.4 MB, free: 3.242 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003742/0.009561, allocations: 348.3 kB / 377.7 MB, free: 2.902 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004406/0.01, allocations: 419 kB / 378.1 MB, free: 2.492 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003327/0.01033, allocations: 255.3 kB / 378.4 MB, free: 2.242 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.142e-05/0.01039, allocations: 48 kB / 378.4 MB, free: 2.195 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.207e-05/0.01045, allocations: 44 kB / 378.4 MB, free: 2.152 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001201/0.01057, allocations: 167.5 kB / 378.6 MB, free: 1.988 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004376/0.01101, allocations: 187.6 kB / 378.8 MB, free: 1.805 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004297/0.01144, allocations: 386.7 kB / 379.2 MB, free: 1.426 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.01144, allocations: 0 / 379.2 MB, free: 1.426 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.01144, allocations: 0 / 379.2 MB, free: 1.426 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.01145, allocations: 4 kB / 379.2 MB, free: 1.422 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.0008898/0.01234, allocations: 0.8133 MB / 380 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.01238, allocations: 15.98 kB / 380 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.01249, allocations: 88.61 kB / 380.1 MB, free: 476 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000571/0.01307, allocations: 423.7 kB / 380.5 MB, free: 28 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.01318, allocations: 84.97 kB / 380.6 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.365e-05/0.01324, allocations: 52.08 kB / 380.6 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005022/0.01375, allocations: 414 kB / 381 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.01376, allocations: 0 / 381 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.705e-05/0.01379, allocations: 16 kB / 381.1 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.0138, allocations: 15.94 kB / 381.1 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000246/0.01405, allocations: 165.8 kB / 381.2 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001761/0.01581, allocations: 2.139 MB / 383.4 MB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002496/0.01606, allocations: 177.1 kB / 383.5 MB, free: 12.78 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.42e-05/0.01614, allocations: 74.97 kB / 383.6 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.01617, allocations: 11.98 kB / 383.6 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.0162, allocations: 37.39 kB / 383.7 MB, free: 12.64 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.964e-06/0.0162, allocations: 0 / 383.7 MB, free: 12.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0009371/0.01714, allocations: 0.6532 MB / 384.3 MB, free: 11.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.747e-05/0.01718, allocations: 110.8 kB / 384.4 MB, free: 11.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002391/0.01742, allocations: 346.2 kB / 384.8 MB, free: 11.45 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.01744, allocations: 29.7 kB / 384.8 MB, free: 11.42 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.0176, allocations: 326.9 kB / 385.1 MB, free: 11.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.944e-05/0.01765, allocations: 83.58 kB / 385.2 MB, free: 11.01 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.829e-05/0.01773, allocations: 71.31 kB / 385.3 MB, free: 10.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004945/0.01822, allocations: 0.5157 MB / 385.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.135e-05/0.0183, allocations: 43.97 kB / 385.8 MB, free: 10.36 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.01847, allocations: 233.6 kB / 386.1 MB, free: 10.05 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003616/0.01883, allocations: 367.3 kB / 386.4 MB, free: 9.613 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.01883, allocations: 4 kB / 386.4 MB, free: 9.609 MB / 362.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004418/0.01928, allocations: 340.8 kB / 386.7 MB, free: 9.266 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.0193, allocations: 8 kB / 386.8 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.0193, allocations: 4 kB / 386.8 MB, free: 9.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002626/0.01957, allocations: 75.62 kB / 386.8 MB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.0197, allocations: 72.03 kB / 386.9 MB, free: 9.105 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001382/0.02109, allocations: 2.225 MB / 389.1 MB, free: 6.766 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.02119, allocations: 19.92 kB / 389.1 MB, free: 6.746 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.028e-05/0.02121, allocations: 20.03 kB / 389.2 MB, free: 6.727 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.0001302/0.02134, allocations: 180.4 kB / 389.3 MB, free: 6.539 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.077e-05/0.02139, allocations: 43.77 kB / 389.4 MB, free: 6.496 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.39e-05/0.02143, allocations: 39.05 kB / 389.4 MB, free: 6.461 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.02143, allocations: 4 kB / 389.4 MB, free: 6.457 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.02143, allocations: 0 / 389.4 MB, free: 6.457 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.02144, allocations: 7.984 kB / 389.4 MB, free: 6.449 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00064/0.02208, allocations: 0.6137 MB / 390.1 MB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.02208, allocations: 0 / 390.1 MB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001284/0.02221, allocations: 39.97 kB / 390.1 MB, free: 5.746 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.169e-05/0.02228, allocations: 35.59 kB / 390.1 MB, free: 5.707 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.02229, allocations: 0 / 390.1 MB, free: 5.707 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006823/0.02298, allocations: 1.732 MB / 391.9 MB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.02298, allocations: 0 / 391.9 MB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003514/0.02333, allocations: 0.5086 MB / 392.4 MB, free: 3.312 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.235e-05/0.02338, allocations: 39.8 kB / 392.4 MB, free: 3.273 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.054e-05/0.0234, allocations: 4 kB / 392.4 MB, free: 3.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.106e-05/0.02349, allocations: 7.984 kB / 392.4 MB, free: 3.262 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.547e-05/0.02356, allocations: 27.84 kB / 392.4 MB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.02357, allocations: 12 kB / 392.5 MB, free: 3.223 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001281/0.0237, allocations: 231 kB / 392.7 MB, free: 2.996 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0237, allocations: 0 / 392.7 MB, free: 2.996 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005846/0.02429, allocations: 84 kB / 392.8 MB, free: 2.914 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.0001035/0.02439, allocations: 99.25 kB / 392.9 MB, free: 2.809 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000423/0.02481, allocations: 369.8 kB / 393.2 MB, free: 2.426 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.02481, allocations: 0 / 393.2 MB, free: 2.426 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001632/0.02498, allocations: 247 kB / 393.5 MB, free: 2.164 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004018/0.02538, allocations: 92.94 kB / 393.6 MB, free: 2.078 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.02681, allocations: 0.8451 MB / 394.4 MB, free: 1.184 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.168e-05/0.02689, allocations: 129.2 kB / 394.5 MB, free: 1.035 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001055/0.02699, allocations: 51.25 kB / 394.6 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.775e-05/0.02704, allocations: 28.5 kB / 394.6 MB, free: 0.957 MB / 362.7 MB Notification: Performance of SimCode: time 7.91e-07/0.02704, allocations: 0 / 394.6 MB, free: 0.957 MB / 362.7 MB Notification: Performance of Templates: time 0.007226/0.03427, allocations: 4.061 MB / 398.7 MB, free: 12.98 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.4079499803483486]