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.002423/0.002423, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.002661/0.002661, allocations: 165.3 kB / 24.28 MB, free: 152 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.529/1.529, allocations: 177.2 MB / 204.6 MB, free: 5.59 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.2946/0.2946, allocations: 29.41 MB / 290.5 MB, free: 2.434 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.372e-06/1.372e-06, allocations: 0 / 368.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.872e-05/3.01e-05, allocations: 5.688 kB / 368.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.008617/0.008647, allocations: 5.348 MB / 374.2 MB, free: 5.938 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003323/0.01197, allocations: 1.558 MB / 375.8 MB, free: 4.375 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003193/0.01229, allocations: 23.81 kB / 375.8 MB, free: 4.352 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004307/0.01272, allocations: 127 kB / 375.9 MB, free: 4.227 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007805/0.0135, allocations: 329.8 kB / 376.3 MB, free: 3.902 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003926/0.01389, allocations: 151.7 kB / 376.4 MB, free: 3.754 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009464/0.01484, allocations: 0.7197 MB / 377.1 MB, free: 3.031 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004979/0.01534, allocations: 348.3 kB / 377.5 MB, free: 2.691 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006288/0.01597, allocations: 422.9 kB / 377.9 MB, free: 2.277 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000476/0.01644, allocations: 259.3 kB / 378.1 MB, free: 2.023 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.633e-05/0.01653, allocations: 51.94 kB / 378.2 MB, free: 1.973 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001171/0.01665, allocations: 48 kB / 378.2 MB, free: 1.926 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002002/0.01685, allocations: 163.5 kB / 378.4 MB, free: 1.766 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002445/0.01709, allocations: 183.6 kB / 378.6 MB, free: 1.586 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008117/0.0179, allocations: 0.6036 MB / 379.2 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.01791, allocations: 0 / 379.2 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.01791, allocations: 4 kB / 379.2 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.01792, allocations: 4 kB / 379.2 MB, free: 0.9727 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.001481/0.0194, allocations: 0.8444 MB / 380 MB, free: 88 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.01944, allocations: 11.98 kB / 380 MB, free: 76 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002003/0.01964, allocations: 96.66 kB / 380.1 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008152/0.02045, allocations: 419.6 kB / 380.5 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.02059, allocations: 88.95 kB / 380.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.581e-05/0.02067, allocations: 48.12 kB / 380.7 MB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/0.02185, allocations: 497.2 kB / 381.2 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.383e-05/0.02187, allocations: 3.953 kB / 381.2 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.35e-05/0.02191, allocations: 16 kB / 381.2 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.02193, allocations: 12 kB / 381.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005824/0.02251, allocations: 247.7 kB / 381.4 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003027/0.02554, allocations: 2.291 MB / 383.7 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004735/0.02601, allocations: 233 kB / 384 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001919/0.0262, allocations: 95.03 kB / 384 MB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.02623, allocations: 8 kB / 384.1 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.3e-05/0.02629, allocations: 45.33 kB / 384.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.553e-06/0.02629, allocations: 0 / 384.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.001753/0.02804, allocations: 0.7589 MB / 384.9 MB, free: 10.97 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.699e-05/0.02813, allocations: 114.7 kB / 385 MB, free: 10.83 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004807/0.02861, allocations: 430.1 kB / 385.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.726e-05/0.02863, allocations: 29.7 kB / 385.4 MB, free: 10.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00027/0.0289, allocations: 347.2 kB / 385.8 MB, free: 10.01 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.103e-05/0.029, allocations: 91.27 kB / 385.8 MB, free: 9.922 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001331/0.02913, allocations: 83.31 kB / 385.9 MB, free: 9.832 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003092/0.02944, allocations: 0.5352 MB / 386.5 MB, free: 9.285 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/0.02962, allocations: 75.97 kB / 386.5 MB, free: 9.211 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00035/0.02997, allocations: 273.6 kB / 386.8 MB, free: 8.859 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.03115, allocations: 0.5261 MB / 387.3 MB, free: 8.254 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.03115, allocations: 0 / 387.3 MB, free: 8.254 MB / 362.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000894/0.03205, allocations: 420.9 kB / 387.7 MB, free: 7.832 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.03207, allocations: 8.094 kB / 387.7 MB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.03207, allocations: 8 kB / 387.8 MB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006685/0.03274, allocations: 87.61 kB / 387.8 MB, free: 7.727 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002356/0.03298, allocations: 71.84 kB / 387.9 MB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00256/0.03554, allocations: 2.376 MB / 390.3 MB, free: 5.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002085/0.03575, allocations: 16.06 kB / 390.3 MB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.934e-05/0.03578, allocations: 19.94 kB / 390.3 MB, free: 5.125 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.000274/0.03605, allocations: 224.3 kB / 390.5 MB, free: 4.898 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.245e-05/0.03614, allocations: 43.7 kB / 390.6 MB, free: 4.855 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.634e-05/0.03622, allocations: 39.11 kB / 390.6 MB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.03622, allocations: 0 / 390.6 MB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.7e-05/0.03624, allocations: 4 kB / 390.6 MB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.03624, allocations: 3.984 kB / 390.6 MB, free: 4.812 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001367/0.03761, allocations: 0.7427 MB / 391.4 MB, free: 4.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.03761, allocations: 0 / 391.4 MB, free: 4.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002375/0.03785, allocations: 47.94 kB / 391.4 MB, free: 3.973 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001094/0.03796, allocations: 31.61 kB / 391.4 MB, free: 3.938 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.977e-05/0.03798, allocations: 8 kB / 391.5 MB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001456/0.03944, allocations: 1.771 MB / 393.2 MB, free: 2.035 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.03944, allocations: 4.125 kB / 393.2 MB, free: 2.031 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008401/0.04028, allocations: 0.5954 MB / 393.8 MB, free: 1.402 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.04039, allocations: 39.8 kB / 393.9 MB, free: 1.363 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.357e-05/0.04042, allocations: 0 / 393.9 MB, free: 1.363 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.04059, allocations: 8.047 kB / 393.9 MB, free: 1.355 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.548e-05/0.04067, allocations: 27.89 kB / 393.9 MB, free: 1.328 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.04068, allocations: 4 kB / 393.9 MB, free: 1.324 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002823/0.04096, allocations: 270.9 kB / 394.2 MB, free: 1.059 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04096, allocations: 0 / 394.2 MB, free: 1.059 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005176/0.04148, allocations: 88 kB / 394.3 MB, free: 0.9727 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.000137/0.04162, allocations: 107.2 kB / 394.4 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008218/0.04244, allocations: 440.9 kB / 394.8 MB, free: 420 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.04244, allocations: 4.062 kB / 394.8 MB, free: 416 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006219/0.04306, allocations: 269.4 kB / 395.1 MB, free: 124 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006691/0.04373, allocations: 105.2 kB / 395.2 MB, free: 28 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.04542, allocations: 0.8531 MB / 396 MB, free: 15.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.0457, allocations: 235.8 kB / 396.2 MB, free: 14.87 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000151/0.04586, allocations: 39.27 kB / 396.3 MB, free: 14.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.208e-05/0.04593, allocations: 32.5 kB / 396.3 MB, free: 14.8 MB / 378.7 MB Notification: Performance of SimCode: time 6.41e-07/0.04593, allocations: 0 / 396.3 MB, free: 14.8 MB / 378.7 MB Notification: Performance of Templates: time 0.01047/0.0564, allocations: 4.058 MB / 400.4 MB, free: 10.83 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","/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.987900402978994]