Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.001491/0.001491, allocations: 108.2 kB / 21.19 MB, free: 0.7617 MB / 14.72 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.001662/0.001662, allocations: 213.9 kB / 24.49 MB, free: 4.145 MB / 14.72 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.371/1.371, allocations: 230.6 MB / 258.3 MB, free: 8.02 MB / 206.1 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.1743/0.1743, allocations: 38.52 MB / 353.2 MB, free: 12.55 MB / 286.1 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_ser,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002081/0.002081, allocations: 71.89 kB / 493.8 MB, free: 4.383 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.2846, allocations: 62.47 MB / 0.5432 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006783/0.2913, allocations: 5.374 MB / 0.5485 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00333/0.2947, allocations: 2.17 MB / 0.5506 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002866/0.295, allocations: 22.69 kB / 0.5506 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005217/0.2955, allocations: 154.2 kB / 0.5508 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009598/0.2964, allocations: 407.1 kB / 0.5511 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005165/0.297, allocations: 210.5 kB / 0.5513 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009555/0.2979, allocations: 0.725 MB / 0.5521 GB, free: 9.645 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004397/0.2983, allocations: 331.9 kB / 0.5524 GB, free: 9.418 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004756/0.2988, allocations: 309.7 kB / 0.5527 GB, free: 9.242 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004448/0.2993, allocations: 305.9 kB / 0.553 GB, free: 9.047 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.624e-05/0.2993, allocations: 51.47 kB / 0.553 GB, free: 9.043 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000268/0.2996, allocations: 144.8 kB / 0.5531 GB, free: 8.996 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001606/0.2998, allocations: 149.1 kB / 0.5533 GB, free: 8.887 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002814/0.3, allocations: 278.2 kB / 0.5536 GB, free: 8.695 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008899/0.3009, allocations: 0.6986 MB / 0.5542 GB, free: 8.203 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.3009, allocations: 5.172 kB / 0.5542 GB, free: 8.199 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3009, allocations: 0 / 0.5542 GB, free: 8.199 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.3009, allocations: 0 / 0.5542 GB, free: 8.199 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001526/0.3025, allocations: 0.8116 MB / 0.555 GB, free: 7.551 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.3025, allocations: 13.95 kB / 0.555 GB, free: 7.547 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.3026, allocations: 59.59 kB / 0.5551 GB, free: 7.516 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000773/0.3034, allocations: 420 kB / 0.5555 GB, free: 7.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.25e-05/0.3034, allocations: 28.12 kB / 0.5555 GB, free: 7.168 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.635e-05/0.3035, allocations: 45.3 kB / 0.5556 GB, free: 7.148 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006785/0.3042, allocations: 461.3 kB / 0.556 GB, free: 6.812 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.3042, allocations: 4.984 kB / 0.556 GB, free: 6.809 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.013e-05/0.3042, allocations: 16.38 kB / 0.556 GB, free: 6.797 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.3043, allocations: 14.09 kB / 0.556 GB, free: 6.793 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004583/0.3047, allocations: 271.6 kB / 0.5563 GB, free: 6.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002214/0.3069, allocations: 1.805 MB / 0.5581 GB, free: 5.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004935/0.3074, allocations: 227.7 kB / 0.5583 GB, free: 4.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.3076, allocations: 82.92 kB / 0.5584 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.506e-05/0.3076, allocations: 15.94 kB / 0.5584 GB, free: 4.664 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002679/0.3079, allocations: 169.8 kB / 0.5585 GB, free: 4.477 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.3079, allocations: 0 / 0.5585 GB, free: 4.477 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001668/0.3095, allocations: 0.8542 MB / 0.5594 GB, free: 3.586 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.661e-05/0.3096, allocations: 136.5 kB / 0.5595 GB, free: 3.422 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005143/0.3101, allocations: 417.8 kB / 0.5599 GB, free: 3.004 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/0.3102, allocations: 29.7 kB / 0.5599 GB, free: 2.969 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002007/0.3104, allocations: 276.1 kB / 0.5602 GB, free: 2.695 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.681e-05/0.3105, allocations: 91.27 kB / 0.5603 GB, free: 2.605 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.3106, allocations: 73.72 kB / 0.5604 GB, free: 2.527 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.3107, allocations: 354.8 kB / 0.5607 GB, free: 2.172 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.3109, allocations: 79.97 kB / 0.5608 GB, free: 2.094 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002594/0.3112, allocations: 216.1 kB / 0.561 GB, free: 1.824 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004355/0.3116, allocations: 315.1 kB / 0.5613 GB, free: 1.461 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3116, allocations: 4 kB / 0.5613 GB, free: 1.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008588/0.3125, allocations: 433.5 kB / 0.5617 GB, free: 1.023 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.3125, allocations: 11.94 kB / 0.5617 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.3125, allocations: 4.531 kB / 0.5617 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004059/0.3129, allocations: 92.77 kB / 0.5618 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002254/0.3131, allocations: 63.91 kB / 0.5619 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002431/0.3155, allocations: 1.915 MB / 0.5637 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002667/0.3158, allocations: 31.81 kB / 0.5638 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.798e-05/0.3158, allocations: 16 kB / 0.5638 GB, free: 14.78 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002433/0.3161, allocations: 197.8 kB / 0.564 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.56e-05/0.3161, allocations: 43.72 kB / 0.564 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006173/0.3168, allocations: 298.1 kB / 0.5643 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.3168, allocations: 7.938 kB / 0.5643 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.3168, allocations: 0 / 0.5643 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.3168, allocations: 3.984 kB / 0.5643 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001112/0.3179, allocations: 0.7367 MB / 0.565 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.3179, allocations: 4 kB / 0.565 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002295/0.3181, allocations: 43.91 kB / 0.5651 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000207/0.3183, allocations: 48.81 kB / 0.5651 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.103e-05/0.3184, allocations: 8 kB / 0.5651 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001355/0.3197, allocations: 1.44 MB / 0.5665 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.3197, allocations: 0 / 0.5665 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007913/0.3205, allocations: 0.5082 MB / 0.567 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.3206, allocations: 67.75 kB / 0.5671 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.973e-05/0.3207, allocations: 4 kB / 0.5671 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.3209, allocations: 23.98 kB / 0.5671 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.564e-05/0.321, allocations: 15.97 kB / 0.5671 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.3e-05/0.321, allocations: 15.98 kB / 0.5671 GB, free: 11.1 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003309/0.3213, allocations: 295.1 kB / 0.5674 GB, free: 10.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3213, allocations: 0 / 0.5674 GB, free: 10.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005302/0.3219, allocations: 119.9 kB / 0.5675 GB, free: 10.7 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001476/0.3233, allocations: 449.7 kB / 0.568 GB, free: 10.42 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008663/0.3242, allocations: 391.1 kB / 0.5683 GB, free: 10.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3242, allocations: 0 / 0.5683 GB, free: 10.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003968/0.3246, allocations: 246.4 kB / 0.5686 GB, free: 9.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006518/0.3252, allocations: 140.5 kB / 0.5687 GB, free: 9.648 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001928/0.3272, allocations: 1.153 MB / 0.5698 GB, free: 8.457 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004952/0.3277, allocations: 0.8543 MB / 0.5707 GB, free: 7.574 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.3278, allocations: 31.44 kB / 0.5707 GB, free: 7.543 MB / 414.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3278, allocations: 0 / 0.5707 GB, free: 7.543 MB / 414.1 MB Notification: Performance of Templates: time 0.0122/0.34, allocations: 8.687 MB / 0.5792 GB, free: 14.88 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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: 8.430111810099334]