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.001618/0.001618, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001802/0.001802, allocations: 211 kB / 24.48 MB, free: 3.938 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.471/1.471, allocations: 230.6 MB / 258.2 MB, free: 7.789 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.2041/0.2041, allocations: 38.55 MB / 353.2 MB, free: 12.43 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.003032/0.003032, allocations: 67.89 kB / 493.7 MB, free: 4.238 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3207, allocations: 62.46 MB / 0.5432 GB, free: 456 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007663/0.3283, allocations: 5.05 MB / 0.5481 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003869/0.3322, allocations: 1.986 MB / 0.55 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004812/0.3327, allocations: 23 kB / 0.5501 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005385/0.3332, allocations: 154.5 kB / 0.5502 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001154/0.3344, allocations: 395.9 kB / 0.5506 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006003/0.335, allocations: 226.2 kB / 0.5508 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.336, allocations: 0.7055 MB / 0.5515 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004656/0.3364, allocations: 326.8 kB / 0.5518 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005139/0.337, allocations: 313.2 kB / 0.5521 GB, free: 9.668 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004428/0.3374, allocations: 281.9 kB / 0.5524 GB, free: 9.496 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.128e-05/0.3375, allocations: 47.84 kB / 0.5524 GB, free: 9.496 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003094/0.3378, allocations: 136.2 kB / 0.5525 GB, free: 9.457 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.338, allocations: 160.9 kB / 0.5527 GB, free: 9.336 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002503/0.3382, allocations: 217.8 kB / 0.5529 GB, free: 9.203 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008851/0.3391, allocations: 0.7133 MB / 0.5536 GB, free: 8.703 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3391, allocations: 0 / 0.5536 GB, free: 8.703 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.3391, allocations: 1 kB / 0.5536 GB, free: 8.703 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.3391, allocations: 0 / 0.5536 GB, free: 8.703 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.001611/0.3407, allocations: 0.8064 MB / 0.5544 GB, free: 8.059 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.3408, allocations: 12.64 kB / 0.5544 GB, free: 8.055 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.3409, allocations: 55.92 kB / 0.5544 GB, free: 8.027 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008539/0.3417, allocations: 428.7 kB / 0.5549 GB, free: 7.684 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.689e-05/0.3418, allocations: 32.3 kB / 0.5549 GB, free: 7.668 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.437e-05/0.3418, allocations: 40.45 kB / 0.5549 GB, free: 7.652 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008171/0.3427, allocations: 478.5 kB / 0.5554 GB, free: 7.301 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.407e-05/0.3427, allocations: 5 kB / 0.5554 GB, free: 7.297 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.723e-05/0.3428, allocations: 20.19 kB / 0.5554 GB, free: 7.281 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.3428, allocations: 10.38 kB / 0.5554 GB, free: 7.281 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005138/0.3433, allocations: 278.3 kB / 0.5557 GB, free: 7.141 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002303/0.3456, allocations: 1.652 MB / 0.5573 GB, free: 5.566 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005201/0.3461, allocations: 241.7 kB / 0.5575 GB, free: 5.305 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.3463, allocations: 78.67 kB / 0.5576 GB, free: 5.219 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/0.3463, allocations: 4.375 kB / 0.5576 GB, free: 5.215 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002902/0.3466, allocations: 176.6 kB / 0.5578 GB, free: 5.023 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.854e-06/0.3466, allocations: 0 / 0.5578 GB, free: 5.023 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001795/0.3484, allocations: 0.8534 MB / 0.5586 GB, free: 4.133 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.168e-05/0.3485, allocations: 140.5 kB / 0.5587 GB, free: 3.965 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005052/0.349, allocations: 397.5 kB / 0.5591 GB, free: 3.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.842e-05/0.349, allocations: 29.7 kB / 0.5591 GB, free: 3.535 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/0.3492, allocations: 276.1 kB / 0.5594 GB, free: 3.262 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.722e-05/0.3493, allocations: 99.31 kB / 0.5595 GB, free: 3.164 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.3494, allocations: 69.64 kB / 0.5596 GB, free: 3.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.3496, allocations: 350.8 kB / 0.5599 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.3497, allocations: 83.95 kB / 0.56 GB, free: 2.656 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002752/0.35, allocations: 237.9 kB / 0.5602 GB, free: 2.359 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004405/0.3504, allocations: 323.1 kB / 0.5605 GB, free: 1.988 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3504, allocations: 0 / 0.5605 GB, free: 1.988 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008538/0.3513, allocations: 433.6 kB / 0.5609 GB, free: 1.555 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.3513, allocations: 4 kB / 0.5609 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.3513, allocations: 4 kB / 0.5609 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004527/0.3518, allocations: 89.22 kB / 0.561 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/0.352, allocations: 71.84 kB / 0.5611 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002589/0.3546, allocations: 1.872 MB / 0.5629 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003012/0.3549, allocations: 19.98 kB / 0.5629 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.033e-05/0.3549, allocations: 19.84 kB / 0.563 GB, free: 15.37 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.000269/0.3552, allocations: 197.6 kB / 0.5632 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.007e-05/0.3553, allocations: 47.72 kB / 0.5632 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006357/0.3559, allocations: 290.1 kB / 0.5635 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.3559, allocations: 4 kB / 0.5635 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.3559, allocations: 7.938 kB / 0.5635 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.3559, allocations: 3.984 kB / 0.5635 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.357, allocations: 0.6595 MB / 0.5641 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.357, allocations: 0 / 0.5641 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002378/0.3573, allocations: 43.98 kB / 0.5642 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000221/0.3575, allocations: 56.73 kB / 0.5642 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.619e-05/0.3575, allocations: 8 kB / 0.5642 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00143/0.359, allocations: 1.413 MB / 0.5656 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.673e-06/0.359, allocations: 7.875 kB / 0.5656 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008143/0.3598, allocations: 0.4919 MB / 0.5661 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001494/0.3599, allocations: 59.72 kB / 0.5662 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.115e-05/0.36, allocations: 4 kB / 0.5662 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002229/0.3602, allocations: 15.98 kB / 0.5662 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.069e-05/0.3603, allocations: 23.95 kB / 0.5662 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.812e-05/0.3603, allocations: 8 kB / 0.5662 GB, free: 11.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000333/0.3606, allocations: 271.2 kB / 0.5665 GB, free: 11.58 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3606, allocations: 0 / 0.5665 GB, free: 11.58 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006027/0.3612, allocations: 123.9 kB / 0.5666 GB, free: 11.46 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.001697/0.3629, allocations: 494.6 kB / 0.5671 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001037/0.364, allocations: 391.2 kB / 0.5674 GB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.364, allocations: 0 / 0.5674 GB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004204/0.3644, allocations: 238.4 kB / 0.5677 GB, free: 10.52 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006958/0.3651, allocations: 127 kB / 0.5678 GB, free: 10.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002023/0.3671, allocations: 1.141 MB / 0.5689 GB, free: 9.227 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002702/0.3674, allocations: 255.9 kB / 0.5691 GB, free: 8.949 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001312/0.3675, allocations: 43.42 kB / 0.5692 GB, free: 8.906 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3675, allocations: 0 / 0.5692 GB, free: 8.906 MB / 414.1 MB Notification: Performance of Templates: time 0.01266/0.3802, allocations: 8.606 MB / 0.5776 GB, free: 324 kB / 414.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.839832511730492]