Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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.001453/0.001453, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.001614/0.001614, allocations: 214.2 kB / 24.48 MB, free: 3.84 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.468/1.468, allocations: 230.6 MB / 258.2 MB, free: 7.809 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.2032/0.2032, allocations: 38.56 MB / 353.2 MB, free: 12.3 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_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") [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.002398/0.002398, allocations: 63.91 kB / 493.7 MB, free: 4.191 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3485/0.3509, allocations: 62.48 MB / 0.5432 GB, free: 404 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.008694/0.3596, allocations: 5.518 MB / 0.5486 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004477/0.3641, allocations: 2.132 MB / 0.5506 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005877/0.3647, allocations: 23.28 kB / 0.5507 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007956/0.3655, allocations: 162.7 kB / 0.5508 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001804/0.3673, allocations: 456 kB / 0.5512 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.3684, allocations: 259.2 kB / 0.5515 GB, free: 9.883 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001692/0.37, allocations: 0.8583 MB / 0.5523 GB, free: 9.383 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007281/0.3708, allocations: 384.2 kB / 0.5527 GB, free: 9.121 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009623/0.3717, allocations: 370.2 kB / 0.5531 GB, free: 8.906 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009213/0.3727, allocations: 332.8 kB / 0.5534 GB, free: 8.707 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001506/0.3728, allocations: 55.09 kB / 0.5534 GB, free: 8.707 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005484/0.3734, allocations: 142.3 kB / 0.5536 GB, free: 8.668 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002925/0.3737, allocations: 192.6 kB / 0.5537 GB, free: 8.527 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005111/0.3742, allocations: 249.5 kB / 0.554 GB, free: 8.379 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001411/0.3756, allocations: 0.7994 MB / 0.5548 GB, free: 7.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3756, allocations: 5.062 kB / 0.5548 GB, free: 7.816 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.3756, allocations: 0 / 0.5548 GB, free: 7.816 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.3756, allocations: 0 / 0.5548 GB, free: 7.816 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002091/0.3777, allocations: 0.8573 MB / 0.5556 GB, free: 7.141 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.3777, allocations: 17.47 kB / 0.5556 GB, free: 7.133 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001642/0.3779, allocations: 74.67 kB / 0.5557 GB, free: 7.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/0.379, allocations: 467.4 kB / 0.5561 GB, free: 6.723 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.594e-05/0.379, allocations: 31.41 kB / 0.5562 GB, free: 6.711 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001336/0.3792, allocations: 48.73 kB / 0.5562 GB, free: 6.691 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/0.3802, allocations: 0.5443 MB / 0.5567 GB, free: 6.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.3802, allocations: 0 / 0.5567 GB, free: 6.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.08e-05/0.3802, allocations: 20 kB / 0.5568 GB, free: 6.141 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-05/0.3803, allocations: 24.98 kB / 0.5568 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006009/0.3809, allocations: 327.7 kB / 0.5571 GB, free: 5.797 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00286/0.3838, allocations: 1.826 MB / 0.5589 GB, free: 3.879 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004678/0.3842, allocations: 233.6 kB / 0.5591 GB, free: 3.625 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.3844, allocations: 70.97 kB / 0.5592 GB, free: 3.547 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.97e-05/0.3844, allocations: 7.953 kB / 0.5592 GB, free: 3.539 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003016/0.3847, allocations: 169.8 kB / 0.5593 GB, free: 3.352 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.843e-06/0.3847, allocations: 0 / 0.5593 GB, free: 3.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001855/0.3866, allocations: 0.8573 MB / 0.5602 GB, free: 2.457 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.3867, allocations: 144.7 kB / 0.5603 GB, free: 2.285 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006439/0.3873, allocations: 421.8 kB / 0.5607 GB, free: 1.867 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.728e-05/0.3874, allocations: 29.7 kB / 0.5607 GB, free: 1.832 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002689/0.3876, allocations: 304.1 kB / 0.561 GB, free: 1.527 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.3877, allocations: 91.5 kB / 0.5611 GB, free: 1.438 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.3879, allocations: 78.08 kB / 0.5612 GB, free: 1.355 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.3881, allocations: 354.7 kB / 0.5615 GB, free: 1 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002467/0.3883, allocations: 88.83 kB / 0.5616 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000315/0.3886, allocations: 251.1 kB / 0.5619 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004689/0.3891, allocations: 320.1 kB / 0.5622 GB, free: 236 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.3891, allocations: 4 kB / 0.5622 GB, free: 232 kB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009217/0.39, allocations: 441.9 kB / 0.5626 GB, free: 15.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.39, allocations: 4 kB / 0.5626 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.3901, allocations: 4 kB / 0.5626 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004514/0.3905, allocations: 92.77 kB / 0.5627 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002738/0.3908, allocations: 76.12 kB / 0.5628 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002592/0.3934, allocations: 1.69 MB / 0.5644 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003144/0.3937, allocations: 23.98 kB / 0.5644 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.554e-05/0.3937, allocations: 16 kB / 0.5644 GB, free: 13.78 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 39 * 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.0003502/0.3941, allocations: 205.7 kB / 0.5646 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.514e-05/0.3941, allocations: 43.72 kB / 0.5647 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006311/0.3948, allocations: 284.2 kB / 0.565 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.3948, allocations: 4 kB / 0.565 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.3948, allocations: 8 kB / 0.565 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.3948, allocations: 4 kB / 0.565 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00129/0.3961, allocations: 0.6578 MB / 0.5656 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3961, allocations: 7.938 kB / 0.5656 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002666/0.3964, allocations: 51.91 kB / 0.5657 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002042/0.3966, allocations: 48.8 kB / 0.5657 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.3966, allocations: 11.98 kB / 0.5657 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001525/0.3981, allocations: 1.405 MB / 0.5671 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.3981, allocations: 4.031 kB / 0.5671 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008044/0.3989, allocations: 478.1 kB / 0.5676 GB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.3991, allocations: 55.75 kB / 0.5676 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.397e-05/0.3991, allocations: 4 kB / 0.5676 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.3994, allocations: 20.05 kB / 0.5676 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.747e-05/0.3994, allocations: 23.91 kB / 0.5677 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/0.3995, allocations: 11.98 kB / 0.5677 GB, free: 10.29 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003691/0.3998, allocations: 283.1 kB / 0.5679 GB, free: 10.01 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3998, allocations: 0 / 0.5679 GB, free: 10.01 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006278/0.4005, allocations: 131.8 kB / 0.5681 GB, free: 9.883 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.001806/0.4023, allocations: 486.1 kB / 0.5685 GB, free: 9.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009284/0.4032, allocations: 386.9 kB / 0.5689 GB, free: 9.199 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4032, allocations: 384 / 0.5689 GB, free: 9.199 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004595/0.4036, allocations: 234.4 kB / 0.5691 GB, free: 8.957 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007188/0.4044, allocations: 122.9 kB / 0.5692 GB, free: 8.848 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002392/0.4068, allocations: 1.244 MB / 0.5705 GB, free: 7.562 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/0.4071, allocations: 285.7 kB / 0.5707 GB, free: 7.258 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001385/0.4073, allocations: 35.44 kB / 0.5708 GB, free: 7.227 MB / 414.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4073, allocations: 3.938 kB / 0.5708 GB, free: 7.223 MB / 414.1 MB Notification: Performance of Templates: time 0.01636/0.4236, allocations: 9.264 MB / 0.5798 GB, free: 13.99 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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: 9.244228773284703]