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.00193/0.00193, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.001429/0.001429, allocations: 212.7 kB / 23.74 MB, free: 4.66 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.469/1.469, allocations: 230.6 MB / 257.5 MB, free: 8.027 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.1913/0.1913, allocations: 38.52 MB / 352.5 MB, free: 12.62 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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) [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.00217/0.00217, allocations: 67.91 kB / 492.5 MB, free: 4.891 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3077, allocations: 62.46 MB / 0.542 GB, free: 464 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007903/0.3156, allocations: 5.907 MB / 0.5478 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00392/0.3196, allocations: 2.314 MB / 0.55 GB, free: 10 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003739/0.3199, allocations: 27.94 kB / 0.5501 GB, free: 9.984 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006024/0.3205, allocations: 176.8 kB / 0.5502 GB, free: 9.844 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001061/0.3216, allocations: 458.9 kB / 0.5507 GB, free: 9.492 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005994/0.3222, allocations: 257.6 kB / 0.5509 GB, free: 9.289 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001142/0.3233, allocations: 0.856 MB / 0.5517 GB, free: 8.793 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005104/0.3238, allocations: 391.3 kB / 0.5521 GB, free: 8.523 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005249/0.3244, allocations: 375.1 kB / 0.5525 GB, free: 8.305 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005465/0.3249, allocations: 357.5 kB / 0.5528 GB, free: 8.082 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.253e-05/0.325, allocations: 55.47 kB / 0.5529 GB, free: 8.082 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002982/0.3253, allocations: 155.2 kB / 0.553 GB, free: 8.031 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002063/0.3255, allocations: 188 kB / 0.5532 GB, free: 7.895 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003337/0.3259, allocations: 312.9 kB / 0.5535 GB, free: 7.684 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009675/0.3268, allocations: 0.7858 MB / 0.5543 GB, free: 7.133 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3268, allocations: 0 / 0.5543 GB, free: 7.133 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3268, allocations: 0 / 0.5543 GB, free: 7.133 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.737e-06/0.3268, allocations: 5.031 kB / 0.5543 GB, free: 7.129 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.001728/0.3286, allocations: 0.8598 MB / 0.5551 GB, free: 6.449 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.3286, allocations: 21.75 kB / 0.5551 GB, free: 6.438 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001029/0.3287, allocations: 82.12 kB / 0.5552 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.3288, allocations: 66.61 kB / 0.5553 GB, free: 6.328 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009479/0.3298, allocations: 471.7 kB / 0.5557 GB, free: 5.957 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.476e-05/0.3298, allocations: 34.5 kB / 0.5557 GB, free: 5.941 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.3299, allocations: 44.86 kB / 0.5558 GB, free: 5.926 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008406/0.3308, allocations: 0.5225 MB / 0.5563 GB, free: 5.547 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.453e-05/0.3308, allocations: 5.031 kB / 0.5563 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.604e-05/0.3308, allocations: 16.38 kB / 0.5563 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.007e-05/0.3309, allocations: 15.78 kB / 0.5563 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005898/0.3315, allocations: 342.8 kB / 0.5567 GB, free: 5.359 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002727/0.3342, allocations: 1.99 MB / 0.5586 GB, free: 3.266 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004658/0.3347, allocations: 229.7 kB / 0.5588 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.3348, allocations: 78.67 kB / 0.5589 GB, free: 2.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.3349, allocations: 4 kB / 0.5589 GB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002939/0.3352, allocations: 168.7 kB / 0.5591 GB, free: 2.742 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.533e-06/0.3352, allocations: 0 / 0.5591 GB, free: 2.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001797/0.337, allocations: 0.8654 MB / 0.5599 GB, free: 1.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.873e-05/0.3371, allocations: 140.5 kB / 0.56 GB, free: 1.672 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005666/0.3376, allocations: 445.8 kB / 0.5605 GB, free: 1.234 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.283e-05/0.3377, allocations: 29.7 kB / 0.5605 GB, free: 1.199 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000262/0.3379, allocations: 308.4 kB / 0.5608 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.714e-05/0.338, allocations: 91.22 kB / 0.5609 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/0.3381, allocations: 74.09 kB / 0.5609 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.3383, allocations: 366.7 kB / 0.5613 GB, free: 364 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.3385, allocations: 88.83 kB / 0.5614 GB, free: 276 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00031/0.3388, allocations: 221.5 kB / 0.5616 GB, free: 15.99 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004545/0.3393, allocations: 321 kB / 0.5619 GB, free: 15.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.3393, allocations: 0 / 0.5619 GB, free: 15.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008936/0.3402, allocations: 445.5 kB / 0.5623 GB, free: 15.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.3402, allocations: 4.562 kB / 0.5623 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.3402, allocations: 8 kB / 0.5623 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004227/0.3406, allocations: 96.77 kB / 0.5624 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002467/0.3409, allocations: 71.91 kB / 0.5625 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002333/0.3432, allocations: 1.732 MB / 0.5642 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000264/0.3435, allocations: 19.98 kB / 0.5642 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.094e-05/0.3435, allocations: 16 kB / 0.5642 GB, free: 13.11 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.0002614/0.3438, allocations: 201.8 kB / 0.5644 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.584e-05/0.3438, allocations: 51.61 kB / 0.5645 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006903/0.3445, allocations: 292.6 kB / 0.5647 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.3445, allocations: 0 / 0.5647 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.3445, allocations: 4 kB / 0.5647 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3445, allocations: 0 / 0.5647 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.3457, allocations: 0.7558 MB / 0.5655 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.3458, allocations: 3.938 kB / 0.5655 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002706/0.346, allocations: 47.92 kB / 0.5655 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002107/0.3462, allocations: 52.78 kB / 0.5656 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.3463, allocations: 8 kB / 0.5656 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001409/0.3477, allocations: 1.436 MB / 0.567 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3477, allocations: 0 / 0.567 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000762/0.3484, allocations: 485.6 kB / 0.5675 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.3486, allocations: 63.69 kB / 0.5675 GB, free: 9.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.424e-05/0.3486, allocations: 4 kB / 0.5675 GB, free: 9.516 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002262/0.3488, allocations: 15.98 kB / 0.5675 GB, free: 9.5 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.583e-05/0.3489, allocations: 19.97 kB / 0.5676 GB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.3489, allocations: 7.984 kB / 0.5676 GB, free: 9.473 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003827/0.3493, allocations: 315.1 kB / 0.5679 GB, free: 9.164 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3493, allocations: 0 / 0.5679 GB, free: 9.164 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005511/0.3499, allocations: 127.9 kB / 0.568 GB, free: 9.039 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.002705/0.3526, allocations: 1.366 MB / 0.5693 GB, free: 7.809 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008904/0.3535, allocations: 390.5 kB / 0.5697 GB, free: 7.414 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.3535, allocations: 3.938 kB / 0.5697 GB, free: 7.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004/0.3539, allocations: 227.5 kB / 0.5699 GB, free: 7.176 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007614/0.3546, allocations: 148.4 kB / 0.5701 GB, free: 7.035 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006538/0.3612, allocations: 4.283 MB / 0.5742 GB, free: 2.543 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005583/0.3617, allocations: 0.8777 MB / 0.5751 GB, free: 1.637 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002288/0.3619, allocations: 68.23 kB / 0.5752 GB, free: 1.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002439/0.3622, allocations: 171.4 kB / 0.5753 GB, free: 1.402 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3622, allocations: 0 / 0.5753 GB, free: 1.402 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06408/0.4263, allocations: 12.39 MB / 0.5874 GB, free: 5.113 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.53/13.96, allocations: 10.34 kB / 0.5874 GB, free: 5.105 MB / 430.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.961850951891392] Failed to read output from testmodel.py, exit status != 0: 14.140089306980371 14.163771186 13.831425986 Calling exit ...