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.001494/0.001494, allocations: 80.34 kB / 20.95 MB, free: 3.457 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.001799/0.001799, allocations: 165.7 kB / 24.27 MB, free: 148 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.506/1.506, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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.325/0.325, allocations: 29.42 MB / 290.5 MB, free: 2.426 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.884e-06/1.884e-06, allocations: 0 / 368.9 MB, free: 11.31 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.94e-05/3.128e-05, allocations: 2.312 kB / 368.9 MB, free: 11.31 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007939/0.007971, allocations: 5.095 MB / 374 MB, free: 6.18 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003034/0.011, allocations: 1.495 MB / 375.5 MB, free: 4.68 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000296/0.0113, allocations: 23.81 kB / 375.5 MB, free: 4.656 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004562/0.01176, allocations: 123 kB / 375.6 MB, free: 4.535 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008915/0.01265, allocations: 333.8 kB / 375.9 MB, free: 4.207 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004225/0.01307, allocations: 151.6 kB / 376.1 MB, free: 4.059 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001111/0.01418, allocations: 0.712 MB / 376.8 MB, free: 3.344 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005421/0.01472, allocations: 348.3 kB / 377.1 MB, free: 3.004 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006274/0.01535, allocations: 422.9 kB / 377.6 MB, free: 2.59 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004413/0.01579, allocations: 243.2 kB / 377.8 MB, free: 2.352 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.718e-05/0.01587, allocations: 48 kB / 377.8 MB, free: 2.305 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.154e-05/0.01596, allocations: 44 kB / 377.9 MB, free: 2.262 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001818/0.01614, allocations: 159.5 kB / 378 MB, free: 2.105 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000238/0.01638, allocations: 179.6 kB / 378.2 MB, free: 1.93 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008525/0.01723, allocations: 0.5997 MB / 378.8 MB, free: 1.328 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.01724, allocations: 8 kB / 378.8 MB, free: 1.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.01724, allocations: 0 / 378.8 MB, free: 1.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.01725, allocations: 0 / 378.8 MB, free: 1.32 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.001469/0.01872, allocations: 0.7018 MB / 379.5 MB, free: 0.582 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.01876, allocations: 15.98 kB / 379.5 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001758/0.01894, allocations: 88.61 kB / 379.6 MB, free: 492 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007757/0.01971, allocations: 424.8 kB / 380 MB, free: 40 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001449/0.01986, allocations: 88.97 kB / 380.1 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.202e-05/0.01995, allocations: 48.12 kB / 380.2 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009719/0.02092, allocations: 0.5008 MB / 380.7 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.723e-05/0.02095, allocations: 3.953 kB / 380.7 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.039e-05/0.021, allocations: 20 kB / 380.7 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.02101, allocations: 8 kB / 380.7 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007292/0.02174, allocations: 351.6 kB / 381 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002572/0.02432, allocations: 1.741 MB / 382.8 MB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004978/0.02481, allocations: 219.5 kB / 383 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/0.02503, allocations: 94.59 kB / 383.1 MB, free: 12.81 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.02505, allocations: 4 kB / 383.1 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.424e-05/0.0251, allocations: 42.5 kB / 383.1 MB, free: 12.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.613e-06/0.0251, allocations: 0 / 383.1 MB, free: 12.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.001989/0.02709, allocations: 0.7785 MB / 383.9 MB, free: 11.94 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.37e-05/0.02718, allocations: 110.8 kB / 384 MB, free: 11.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00038/0.02756, allocations: 308.4 kB / 384.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.145e-05/0.02759, allocations: 33.64 kB / 384.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002336/0.02783, allocations: 280.1 kB / 384.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.567e-05/0.02791, allocations: 79.34 kB / 384.7 MB, free: 11.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/0.02803, allocations: 69.64 kB / 384.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002115/0.02824, allocations: 342.8 kB / 385.1 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002292/0.02847, allocations: 87.95 kB / 385.2 MB, free: 10.6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003363/0.0288, allocations: 217.1 kB / 385.4 MB, free: 10.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.03007, allocations: 494 kB / 385.9 MB, free: 9.785 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.03008, allocations: 4 kB / 385.9 MB, free: 9.781 MB / 362.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009588/0.03104, allocations: 426.1 kB / 386.3 MB, free: 9.355 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.03106, allocations: 8.062 kB / 386.3 MB, free: 9.348 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.03107, allocations: 8 kB / 386.3 MB, free: 9.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004492/0.03152, allocations: 88.78 kB / 386.4 MB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002663/0.03179, allocations: 71.84 kB / 386.5 MB, free: 9.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002328/0.03412, allocations: 1.79 MB / 388.3 MB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002288/0.03434, allocations: 19.92 kB / 388.3 MB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.031e-05/0.03437, allocations: 19.94 kB / 388.3 MB, free: 7.246 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.0002704/0.03465, allocations: 193.8 kB / 388.5 MB, free: 7.047 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.072e-05/0.03474, allocations: 39.81 kB / 388.5 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.22e-05/0.03481, allocations: 35.11 kB / 388.6 MB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.03481, allocations: 7.938 kB / 388.6 MB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.03482, allocations: 0 / 388.6 MB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.03482, allocations: 3.984 kB / 388.6 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001239/0.03606, allocations: 0.6167 MB / 389.2 MB, free: 6.301 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.03606, allocations: 4.031 kB / 389.2 MB, free: 6.297 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00027/0.03633, allocations: 47.91 kB / 389.3 MB, free: 6.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.599e-05/0.03643, allocations: 20.8 kB / 389.3 MB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.03645, allocations: 8 kB / 389.3 MB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001159/0.03761, allocations: 1.26 MB / 390.5 MB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.03761, allocations: 0 / 390.5 MB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009476/0.03856, allocations: 0.5041 MB / 391.1 MB, free: 4.332 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.498e-05/0.03865, allocations: 47.78 kB / 391.1 MB, free: 4.285 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.715e-05/0.03869, allocations: 8 kB / 391.1 MB, free: 4.277 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.03889, allocations: 8 kB / 391.1 MB, free: 4.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.344e-05/0.03896, allocations: 19.91 kB / 391.1 MB, free: 4.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.03898, allocations: 11.98 kB / 391.1 MB, free: 4.238 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002508/0.03923, allocations: 203.1 kB / 391.3 MB, free: 4.039 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03923, allocations: 0 / 391.3 MB, free: 4.039 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005135/0.03974, allocations: 92 kB / 391.4 MB, free: 3.949 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.0001364/0.03988, allocations: 103.2 kB / 391.5 MB, free: 3.836 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008221/0.0407, allocations: 358.4 kB / 391.9 MB, free: 3.473 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.04071, allocations: 4 kB / 391.9 MB, free: 3.469 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004086/0.04111, allocations: 211.5 kB / 392.1 MB, free: 3.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006747/0.04179, allocations: 103.8 kB / 392.2 MB, free: 3.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001794/0.04358, allocations: 0.8509 MB / 393 MB, free: 2.266 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.04389, allocations: 243.8 kB / 393.3 MB, free: 2.008 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001815/0.04408, allocations: 47.25 kB / 393.3 MB, free: 1.961 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.97e-05/0.04416, allocations: 28.5 kB / 393.4 MB, free: 1.934 MB / 362.7 MB Notification: Performance of SimCode: time 1.282e-06/0.04416, allocations: 0 / 393.4 MB, free: 1.934 MB / 362.7 MB Notification: Performance of Templates: time 0.01007/0.05423, allocations: 4.027 MB / 397.4 MB, free: 13.99 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=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.951990557950921]