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.001154/0.001154, allocations: 77.88 kB / 21.42 MB, free: 3.074 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.001247/0.001247, allocations: 169.2 kB / 24.82 MB, free: 8.871 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.119/1.119, allocations: 177.1 MB / 205.3 MB, free: 5.465 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.3189/0.3189, allocations: 29.42 MB / 291.2 MB, free: 2.391 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 3.276e-06/3.276e-06, allocations: 0 / 370.1 MB, free: 10.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.182e-05/4.51e-05, allocations: 2.312 kB / 370.1 MB, free: 10.69 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006005/0.00605, allocations: 4.784 MB / 374.9 MB, free: 5.867 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002688/0.008738, allocations: 1.565 MB / 376.5 MB, free: 4.297 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004489/0.009187, allocations: 31.75 kB / 376.5 MB, free: 4.266 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004698/0.009656, allocations: 111.1 kB / 376.6 MB, free: 4.156 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001014/0.01067, allocations: 325.8 kB / 376.9 MB, free: 3.836 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005256/0.0112, allocations: 159.7 kB / 377.1 MB, free: 3.68 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001084/0.01228, allocations: 0.712 MB / 377.8 MB, free: 2.965 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005734/0.01285, allocations: 344.4 kB / 378.1 MB, free: 2.629 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009026/0.01376, allocations: 434.9 kB / 378.6 MB, free: 2.203 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004573/0.01421, allocations: 247.3 kB / 378.8 MB, free: 1.961 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.653e-05/0.01429, allocations: 44 kB / 378.8 MB, free: 1.918 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.713e-05/0.01439, allocations: 44 kB / 378.9 MB, free: 1.875 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001655/0.01455, allocations: 171.5 kB / 379.1 MB, free: 1.707 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001766/0.01473, allocations: 179.6 kB / 379.2 MB, free: 1.531 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006097/0.01534, allocations: 386.7 kB / 379.6 MB, free: 1.152 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.01534, allocations: 0 / 379.6 MB, free: 1.152 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.01535, allocations: 0 / 379.6 MB, free: 1.152 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.01536, allocations: 0 / 379.6 MB, free: 1.152 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.001159/0.01652, allocations: 0.8171 MB / 380.4 MB, free: 300 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.01657, allocations: 11.98 kB / 380.4 MB, free: 288 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.0167, allocations: 92.61 kB / 380.5 MB, free: 196 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006161/0.01731, allocations: 396.3 kB / 380.9 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.01743, allocations: 92.95 kB / 381 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.018e-05/0.0175, allocations: 43.56 kB / 381 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004876/0.01798, allocations: 389.8 kB / 381.4 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.01801, allocations: 7.953 kB / 381.4 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.266e-05/0.01804, allocations: 24 kB / 381.5 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.01805, allocations: 12 kB / 381.5 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001938/0.01825, allocations: 134.7 kB / 381.6 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002172/0.02042, allocations: 2.147 MB / 383.7 MB, free: 12.78 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002537/0.02067, allocations: 161 kB / 383.9 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.32e-05/0.02074, allocations: 63.16 kB / 384 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.02076, allocations: 8 kB / 384 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/0.0208, allocations: 33.39 kB / 384 MB, free: 12.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 3.957e-06/0.0208, allocations: 0 / 384 MB, free: 12.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0009461/0.02175, allocations: 468 kB / 384.5 MB, free: 11.96 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.146e-05/0.0218, allocations: 106.8 kB / 384.6 MB, free: 11.83 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.02202, allocations: 350 kB / 384.9 MB, free: 11.47 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.02204, allocations: 33.64 kB / 384.9 MB, free: 11.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002474/0.02229, allocations: 330.8 kB / 385.3 MB, free: 11.1 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.206e-05/0.02234, allocations: 83.28 kB / 385.3 MB, free: 11.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.473e-05/0.02242, allocations: 75.3 kB / 385.4 MB, free: 10.94 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.02259, allocations: 0.5195 MB / 385.9 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.91e-05/0.02265, allocations: 31.97 kB / 386 MB, free: 10.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.02283, allocations: 225.6 kB / 386.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003483/0.02318, allocations: 343.3 kB / 386.5 MB, free: 9.656 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.02318, allocations: 7.938 kB / 386.5 MB, free: 9.648 MB / 362.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004452/0.02363, allocations: 308.5 kB / 386.8 MB, free: 9.336 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.02365, allocations: 7.984 kB / 386.8 MB, free: 9.328 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.02366, allocations: 8 kB / 386.9 MB, free: 9.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002559/0.02392, allocations: 88.11 kB / 386.9 MB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.02406, allocations: 63.86 kB / 387 MB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002026/0.02608, allocations: 2.185 MB / 389.2 MB, free: 6.867 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.02623, allocations: 11.95 kB / 389.2 MB, free: 6.855 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.02625, allocations: 19.94 kB / 389.2 MB, free: 6.836 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.0001747/0.02643, allocations: 176.5 kB / 389.4 MB, free: 6.652 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.099e-05/0.02649, allocations: 39.81 kB / 389.4 MB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.306e-05/0.02653, allocations: 35.11 kB / 389.5 MB, free: 6.582 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.02654, allocations: 8.031 kB / 389.5 MB, free: 6.574 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.02654, allocations: 0 / 389.5 MB, free: 6.574 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.02655, allocations: 0 / 389.5 MB, free: 6.574 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000618/0.02716, allocations: 0.5438 MB / 390 MB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.02717, allocations: 0 / 390 MB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001318/0.0273, allocations: 39.97 kB / 390.1 MB, free: 5.949 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.298e-05/0.02737, allocations: 15.69 kB / 390.1 MB, free: 5.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.02739, allocations: 15.97 kB / 390.1 MB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007453/0.02813, allocations: 1.701 MB / 391.8 MB, free: 4.098 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.02814, allocations: 4 kB / 391.8 MB, free: 4.094 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003676/0.02851, allocations: 0.4891 MB / 392.3 MB, free: 3.574 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.652e-05/0.02856, allocations: 47.86 kB / 392.3 MB, free: 3.527 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.966e-05/0.02858, allocations: 8 kB / 392.3 MB, free: 3.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.636e-05/0.02867, allocations: 8 kB / 392.3 MB, free: 3.512 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.407e-05/0.02872, allocations: 23.84 kB / 392.4 MB, free: 3.488 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.02873, allocations: 7.938 kB / 392.4 MB, free: 3.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001262/0.02886, allocations: 222.9 kB / 392.6 MB, free: 3.262 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-08/0.02886, allocations: 0 / 392.6 MB, free: 3.262 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003609/0.02922, allocations: 84 kB / 392.7 MB, free: 3.18 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.0001248/0.02934, allocations: 99.3 kB / 392.8 MB, free: 3.074 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004461/0.02979, allocations: 354 kB / 393.1 MB, free: 2.707 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.02979, allocations: 0 / 393.1 MB, free: 2.707 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001842/0.02998, allocations: 238.6 kB / 393.3 MB, free: 2.453 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004183/0.0304, allocations: 104.2 kB / 393.4 MB, free: 2.359 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.03188, allocations: 0.845 MB / 394.3 MB, free: 1.465 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.665e-05/0.03198, allocations: 129.3 kB / 394.4 MB, free: 1.316 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001166/0.03209, allocations: 39.25 kB / 394.5 MB, free: 1.277 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001585/0.03225, allocations: 150.2 kB / 394.6 MB, free: 1.129 MB / 362.7 MB Notification: Performance of SimCode: time 1.573e-06/0.03225, allocations: 0 / 394.6 MB, free: 1.129 MB / 362.7 MB Notification: Performance of Templates: time 0.008734/0.04099, allocations: 4.414 MB / 399 MB, free: 12.82 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.493220203090459]