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.001798/0.001798, 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.002328/0.002328, allocations: 215.1 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.509/1.509, allocations: 230.6 MB / 258.3 MB, free: 7.801 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.1866/0.1866, allocations: 38.56 MB / 353.2 MB, free: 12.38 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_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: 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.002144/0.002144, allocations: 74.7 kB / 493.7 MB, free: 4.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3073/0.3095, allocations: 62.46 MB / 0.5432 GB, free: 404 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007207/0.3167, allocations: 5.102 MB / 0.5481 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002883/0.3196, allocations: 1.499 MB / 0.5496 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003415/0.3199, allocations: 23.59 kB / 0.5496 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004259/0.3203, allocations: 122.1 kB / 0.5497 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008535/0.3212, allocations: 318.8 kB / 0.55 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004201/0.3216, allocations: 154.6 kB / 0.5502 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009249/0.3225, allocations: 0.7013 MB / 0.5509 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004643/0.323, allocations: 327.8 kB / 0.5512 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005184/0.3235, allocations: 304.5 kB / 0.5515 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004507/0.324, allocations: 270.1 kB / 0.5517 GB, free: 9.898 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.239e-05/0.324, allocations: 49.19 kB / 0.5518 GB, free: 9.895 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.964e-05/0.3241, allocations: 47.12 kB / 0.5518 GB, free: 9.895 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001751/0.3243, allocations: 160.6 kB / 0.552 GB, free: 9.777 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002472/0.3246, allocations: 216.5 kB / 0.5522 GB, free: 9.652 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007223/0.3253, allocations: 0.5973 MB / 0.5528 GB, free: 9.23 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3253, allocations: 0 / 0.5528 GB, free: 9.23 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3253, allocations: 0 / 0.5528 GB, free: 9.23 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.218e-06/0.3253, allocations: 0 / 0.5528 GB, free: 9.23 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001424/0.3267, allocations: 0.7255 MB / 0.5535 GB, free: 8.652 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.3268, allocations: 13.55 kB / 0.5535 GB, free: 8.648 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.3269, allocations: 63.56 kB / 0.5536 GB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008524/0.3277, allocations: 383.7 kB / 0.5539 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000156/0.3279, allocations: 92.12 kB / 0.554 GB, free: 8.227 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.384e-05/0.328, allocations: 44 kB / 0.554 GB, free: 8.211 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008931/0.3289, allocations: 0.4976 MB / 0.5545 GB, free: 7.867 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.3289, allocations: 9 kB / 0.5545 GB, free: 7.859 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.655e-05/0.3289, allocations: 20.84 kB / 0.5546 GB, free: 7.844 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.3289, allocations: 11 kB / 0.5546 GB, free: 7.844 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006742/0.3296, allocations: 340.1 kB / 0.5549 GB, free: 7.676 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002485/0.3321, allocations: 1.744 MB / 0.5566 GB, free: 6.137 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004643/0.3326, allocations: 210.8 kB / 0.5568 GB, free: 5.961 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002064/0.3328, allocations: 90.59 kB / 0.5569 GB, free: 5.863 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.3328, allocations: 0 / 0.5569 GB, free: 5.863 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.88e-05/0.3328, allocations: 38.56 kB / 0.5569 GB, free: 5.816 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.533e-06/0.3328, allocations: 0 / 0.5569 GB, free: 5.816 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001771/0.3346, allocations: 0.7819 MB / 0.5577 GB, free: 5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.353e-05/0.3347, allocations: 110.8 kB / 0.5578 GB, free: 4.867 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003727/0.335, allocations: 304.4 kB / 0.5581 GB, free: 4.559 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/0.3351, allocations: 29.7 kB / 0.5581 GB, free: 4.523 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001979/0.3353, allocations: 276.2 kB / 0.5584 GB, free: 4.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.684e-05/0.3354, allocations: 91.25 kB / 0.5585 GB, free: 4.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.3355, allocations: 69.91 kB / 0.5585 GB, free: 4.086 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.3356, allocations: 346.8 kB / 0.5589 GB, free: 3.738 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002075/0.3358, allocations: 83.73 kB / 0.5589 GB, free: 3.656 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003046/0.3361, allocations: 221 kB / 0.5592 GB, free: 3.379 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.3373, allocations: 490.3 kB / 0.5596 GB, free: 2.844 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.3373, allocations: 4 kB / 0.5596 GB, free: 2.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000879/0.3382, allocations: 410 kB / 0.56 GB, free: 2.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.3382, allocations: 11.94 kB / 0.56 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.3382, allocations: 4 kB / 0.56 GB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003199/0.3386, allocations: 72.8 kB / 0.5601 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002727/0.3388, allocations: 67.91 kB / 0.5602 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002085/0.3409, allocations: 1.801 MB / 0.5619 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002459/0.3412, allocations: 12 kB / 0.5619 GB, free: 368 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.794e-05/0.3412, allocations: 20.16 kB / 0.562 GB, free: 348 kB / 398.1 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.0002629/0.3415, allocations: 189.8 kB / 0.5621 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.632e-05/0.3415, allocations: 39.77 kB / 0.5622 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.1e-05/0.3416, allocations: 39.09 kB / 0.5622 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.3416, allocations: 4 kB / 0.5622 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.3416, allocations: 3.938 kB / 0.5622 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3416, allocations: 0 / 0.5622 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/0.3428, allocations: 0.6118 MB / 0.5628 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.3428, allocations: 0 / 0.5628 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002534/0.3431, allocations: 48 kB / 0.5629 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.481e-05/0.3432, allocations: 28.78 kB / 0.5629 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.074e-05/0.3432, allocations: 8 kB / 0.5629 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000995/0.3442, allocations: 1.256 MB / 0.5641 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.3442, allocations: 8.031 kB / 0.5641 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007798/0.345, allocations: 0.4998 MB / 0.5646 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.3451, allocations: 39.84 kB / 0.5647 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.132e-05/0.3452, allocations: 11.88 kB / 0.5647 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.3454, allocations: 7.984 kB / 0.5647 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.77e-05/0.3454, allocations: 27.91 kB / 0.5647 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.3455, allocations: 4 kB / 0.5647 GB, free: 13.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002554/0.3457, allocations: 211.1 kB / 0.5649 GB, free: 13.14 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3457, allocations: 4 kB / 0.5649 GB, free: 13.13 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005972/0.3463, allocations: 84 kB / 0.565 GB, free: 13.05 MB / 414.1 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.0001262/0.3464, allocations: 99.25 kB / 0.5651 GB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009395/0.3474, allocations: 366.8 kB / 0.5654 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3474, allocations: 0 / 0.5654 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003887/0.3478, allocations: 210.5 kB / 0.5656 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006777/0.3484, allocations: 95.64 kB / 0.5657 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/0.3503, allocations: 0.9699 MB / 0.5667 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.3506, allocations: 239.7 kB / 0.5669 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.796e-05/0.3506, allocations: 35.44 kB / 0.5669 GB, free: 10.96 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3507, allocations: 0 / 0.5669 GB, free: 10.96 MB / 414.1 MB Notification: Performance of Templates: time 0.01095/0.3616, allocations: 6.888 MB / 0.5737 GB, free: 4.082 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins1/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: 8.357933555264026]