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.000939/0.000939, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.0009558/0.0009558, allocations: 163.9 kB / 24.99 MB, free: 8.336 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.066/1.066, allocations: 177.1 MB / 205.3 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.2337/0.2337, allocations: 29.41 MB / 291.2 MB, free: 2.527 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.432e-06/1.432e-06, allocations: 0 / 369.6 MB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.665e-05/1.808e-05, allocations: 9.047 kB / 369.6 MB, free: 11.37 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005399/0.005417, allocations: 5.41 MB / 375 MB, free: 5.926 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001865/0.007282, allocations: 1.569 MB / 376.6 MB, free: 4.352 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002364/0.007518, allocations: 23.81 kB / 376.6 MB, free: 4.328 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003514/0.00787, allocations: 123 kB / 376.7 MB, free: 4.207 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005554/0.008425, allocations: 329.7 kB / 377.1 MB, free: 3.883 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002779/0.008703, allocations: 155.7 kB / 377.2 MB, free: 3.73 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006479/0.009351, allocations: 0.7159 MB / 377.9 MB, free: 3.012 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003669/0.009718, allocations: 344.3 kB / 378.3 MB, free: 2.676 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003799/0.0101, allocations: 422.8 kB / 378.7 MB, free: 2.262 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002992/0.0104, allocations: 263.3 kB / 378.9 MB, free: 2.004 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.96e-05/0.01046, allocations: 48 kB / 379 MB, free: 1.957 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.796e-05/0.01051, allocations: 48 kB / 379 MB, free: 1.91 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001205/0.01064, allocations: 171.5 kB / 379.2 MB, free: 1.742 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001496/0.01078, allocations: 183.6 kB / 379.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003789/0.01116, allocations: 390.6 kB / 379.8 MB, free: 1.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.484e-06/0.01117, allocations: 0 / 379.8 MB, free: 1.18 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.01117, allocations: 0 / 379.8 MB, free: 1.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.01117, allocations: 0 / 379.8 MB, free: 1.18 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.0009192/0.01209, allocations: 0.8212 MB / 380.6 MB, free: 324 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.01213, allocations: 11.98 kB / 380.6 MB, free: 312 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.01224, allocations: 88.61 kB / 380.7 MB, free: 224 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005065/0.01275, allocations: 411.7 kB / 381.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.119e-05/0.01284, allocations: 92.95 kB / 381.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.486e-05/0.0129, allocations: 48.08 kB / 381.2 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004475/0.01334, allocations: 414 kB / 381.6 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.01336, allocations: 7.938 kB / 381.6 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.756e-05/0.01339, allocations: 20 kB / 381.6 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.0134, allocations: 8 kB / 381.7 MB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002419/0.01364, allocations: 169.8 kB / 381.8 MB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.01515, allocations: 2.135 MB / 384 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002296/0.01538, allocations: 177.5 kB / 384.1 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.86e-05/0.01545, allocations: 71.09 kB / 384.2 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.743e-05/0.01547, allocations: 4 kB / 384.2 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/0.0155, allocations: 45.33 kB / 384.2 MB, free: 12.4 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.332e-06/0.0155, allocations: 0 / 384.2 MB, free: 12.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008959/0.0164, allocations: 0.6465 MB / 384.9 MB, free: 11.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/0.01645, allocations: 110.8 kB / 385 MB, free: 11.58 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002327/0.01668, allocations: 350.1 kB / 385.3 MB, free: 11.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.0167, allocations: 33.7 kB / 385.4 MB, free: 11.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.01685, allocations: 330.9 kB / 385.7 MB, free: 10.85 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.91e-05/0.0169, allocations: 83.27 kB / 385.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.988e-05/0.01697, allocations: 75.25 kB / 385.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.01711, allocations: 0.5196 MB / 386.4 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.732e-05/0.01718, allocations: 39.97 kB / 386.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/0.01733, allocations: 225.7 kB / 386.6 MB, free: 9.812 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003384/0.01767, allocations: 363.1 kB / 387 MB, free: 9.379 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.01767, allocations: 4 kB / 387 MB, free: 9.375 MB / 362.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004121/0.01808, allocations: 344.4 kB / 387.3 MB, free: 9.027 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.0181, allocations: 4 kB / 387.3 MB, free: 9.023 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.0181, allocations: 4 kB / 387.3 MB, free: 9.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002549/0.01836, allocations: 88.2 kB / 387.4 MB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.0185, allocations: 59.91 kB / 387.5 MB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001343/0.01984, allocations: 2.227 MB / 389.7 MB, free: 6.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.185e-05/0.01993, allocations: 12 kB / 389.7 MB, free: 6.508 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.01995, allocations: 16 kB / 389.7 MB, free: 6.492 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.0001187/0.02007, allocations: 191.2 kB / 389.9 MB, free: 6.297 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.737e-05/0.02011, allocations: 39.77 kB / 390 MB, free: 6.258 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.503e-05/0.02015, allocations: 39.11 kB / 390 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.02015, allocations: 12.02 kB / 390 MB, free: 6.211 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.02016, allocations: 4 kB / 390 MB, free: 6.207 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.02016, allocations: 0 / 390 MB, free: 6.207 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006145/0.02077, allocations: 0.6074 MB / 390.6 MB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.02078, allocations: 0 / 390.6 MB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/0.02091, allocations: 47.91 kB / 390.7 MB, free: 5.504 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.603e-05/0.02097, allocations: 23.62 kB / 390.7 MB, free: 5.477 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.02099, allocations: 8.031 kB / 390.7 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006769/0.02166, allocations: 1.724 MB / 392.4 MB, free: 3.621 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.02167, allocations: 7.984 kB / 392.4 MB, free: 3.613 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003401/0.02201, allocations: 0.5044 MB / 392.9 MB, free: 3.078 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.07e-05/0.02206, allocations: 43.92 kB / 393 MB, free: 3.035 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.02208, allocations: 7.938 kB / 393 MB, free: 3.027 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.696e-05/0.02216, allocations: 8 kB / 393 MB, free: 3.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.099e-05/0.02223, allocations: 27.89 kB / 393 MB, free: 2.992 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.868e-06/0.02223, allocations: 4 kB / 393 MB, free: 2.988 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001262/0.02236, allocations: 227 kB / 393.2 MB, free: 2.766 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02236, allocations: 0 / 393.2 MB, free: 2.766 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002919/0.02265, allocations: 84 kB / 393.3 MB, free: 2.684 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.0001123/0.02277, allocations: 111.2 kB / 393.4 MB, free: 2.566 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004468/0.02321, allocations: 361 kB / 393.8 MB, free: 2.191 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.02321, allocations: 0 / 393.8 MB, free: 2.191 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001768/0.02339, allocations: 246.6 kB / 394 MB, free: 1.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003998/0.02379, allocations: 91.94 kB / 394.1 MB, free: 1.844 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.02521, allocations: 0.849 MB / 395 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.511e-05/0.0253, allocations: 129.3 kB / 395.1 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001041/0.02541, allocations: 51.25 kB / 395.1 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.355e-05/0.02546, allocations: 28.5 kB / 395.2 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of SimCode: time 6.21e-07/0.02546, allocations: 0 / 395.2 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of Templates: time 0.006239/0.0317, allocations: 4.075 MB / 399.2 MB, free: 12.73 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.16161560988985]