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.001399/0.001399, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001499/0.001499, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.494/1.494, allocations: 230.6 MB / 258.3 MB, free: 8 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.1899/0.1899, allocations: 38.54 MB / 353.2 MB, free: 12.54 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="cs",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.00204/0.00204, allocations: 59.91 kB / 493.3 MB, free: 4.895 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3188, allocations: 62.48 MB / 0.5428 GB, free: 456 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007702/0.3265, allocations: 5.906 MB / 0.5485 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003935/0.3304, allocations: 2.314 MB / 0.5508 GB, free: 9.992 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004604/0.3309, allocations: 28.25 kB / 0.5508 GB, free: 9.977 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006661/0.3315, allocations: 171.9 kB / 0.551 GB, free: 9.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00142/0.3329, allocations: 462.4 kB / 0.5514 GB, free: 9.484 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007251/0.3337, allocations: 246.9 kB / 0.5517 GB, free: 9.293 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001421/0.3351, allocations: 0.8634 MB / 0.5525 GB, free: 8.789 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007314/0.3358, allocations: 404 kB / 0.5529 GB, free: 8.508 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006584/0.3365, allocations: 362.4 kB / 0.5532 GB, free: 8.301 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005697/0.337, allocations: 361 kB / 0.5536 GB, free: 8.074 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.424e-05/0.3371, allocations: 55.03 kB / 0.5536 GB, free: 8.074 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003573/0.3375, allocations: 151.2 kB / 0.5538 GB, free: 8.027 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000216/0.3377, allocations: 197 kB / 0.554 GB, free: 7.883 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003479/0.338, allocations: 304.4 kB / 0.5543 GB, free: 7.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001192/0.3392, allocations: 0.7934 MB / 0.555 GB, free: 7.121 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3392, allocations: 1.156 kB / 0.555 GB, free: 7.121 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3392, allocations: 0 / 0.555 GB, free: 7.121 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.3393, allocations: 0 / 0.555 GB, free: 7.121 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.001865/0.3411, allocations: 0.863 MB / 0.5559 GB, free: 6.441 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.3412, allocations: 13.67 kB / 0.5559 GB, free: 6.438 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.529e-05/0.3412, allocations: 18.84 kB / 0.5559 GB, free: 6.43 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.424e-05/0.3413, allocations: 78.25 kB / 0.556 GB, free: 6.359 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001353/0.3414, allocations: 70.84 kB / 0.556 GB, free: 6.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009404/0.3424, allocations: 471.9 kB / 0.5565 GB, free: 5.949 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.687e-05/0.3424, allocations: 34.31 kB / 0.5565 GB, free: 5.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.3425, allocations: 49.11 kB / 0.5566 GB, free: 5.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008817/0.3434, allocations: 0.5141 MB / 0.5571 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.3434, allocations: 2.094 kB / 0.5571 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.879e-05/0.3435, allocations: 16.47 kB / 0.5571 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-05/0.3435, allocations: 19.23 kB / 0.5571 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005892/0.3441, allocations: 336.8 kB / 0.5574 GB, free: 5.359 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002907/0.347, allocations: 1.997 MB / 0.5594 GB, free: 3.258 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005139/0.3476, allocations: 230.6 kB / 0.5596 GB, free: 3.008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.3477, allocations: 74.61 kB / 0.5597 GB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/0.3477, allocations: 0 / 0.5597 GB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002912/0.348, allocations: 169.8 kB / 0.5598 GB, free: 2.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.442e-06/0.348, allocations: 3.938 kB / 0.5598 GB, free: 2.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001884/0.3499, allocations: 0.8674 MB / 0.5607 GB, free: 1.832 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.35, allocations: 144.8 kB / 0.5608 GB, free: 1.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005801/0.3506, allocations: 437.8 kB / 0.5612 GB, free: 1.227 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.347e-05/0.3506, allocations: 29.7 kB / 0.5613 GB, free: 1.191 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002425/0.3509, allocations: 308.4 kB / 0.5616 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.809e-05/0.3509, allocations: 95.22 kB / 0.5617 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.3511, allocations: 74.08 kB / 0.5617 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002013/0.3513, allocations: 358.7 kB / 0.5621 GB, free: 360 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001761/0.3515, allocations: 84.83 kB / 0.5621 GB, free: 276 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002947/0.3517, allocations: 229.4 kB / 0.5624 GB, free: 15.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000457/0.3522, allocations: 328.9 kB / 0.5627 GB, free: 15.61 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3522, allocations: 0 / 0.5627 GB, free: 15.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009666/0.3532, allocations: 441.7 kB / 0.5631 GB, free: 15.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.59e-05/0.3532, allocations: 11.98 kB / 0.5631 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.3532, allocations: 4 kB / 0.5631 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004735/0.3537, allocations: 93.2 kB / 0.5632 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002857/0.354, allocations: 79.84 kB / 0.5633 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002348/0.3563, allocations: 1.728 MB / 0.565 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003483/0.3567, allocations: 28 kB / 0.565 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.066e-05/0.3567, allocations: 16 kB / 0.565 GB, free: 13.1 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.0003069/0.357, allocations: 209.7 kB / 0.5652 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.589e-05/0.3571, allocations: 47.66 kB / 0.5653 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006214/0.3577, allocations: 278.2 kB / 0.5655 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.3577, allocations: 7.938 kB / 0.5655 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.3577, allocations: 4 kB / 0.5655 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.3577, allocations: 7.984 kB / 0.5655 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001361/0.3591, allocations: 0.755 MB / 0.5663 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.3591, allocations: 0 / 0.5663 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002761/0.3594, allocations: 43.97 kB / 0.5663 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002239/0.3596, allocations: 52.81 kB / 0.5664 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.403e-05/0.3596, allocations: 7.984 kB / 0.5664 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001468/0.3611, allocations: 1.432 MB / 0.5678 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.3611, allocations: 11.91 kB / 0.5678 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008416/0.3619, allocations: 477.7 kB / 0.5682 GB, free: 9.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001912/0.3621, allocations: 67.67 kB / 0.5683 GB, free: 9.504 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.877e-05/0.3622, allocations: 4 kB / 0.5683 GB, free: 9.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002311/0.3624, allocations: 11.98 kB / 0.5683 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.351e-05/0.3625, allocations: 31.83 kB / 0.5684 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.389e-05/0.3625, allocations: 12 kB / 0.5684 GB, free: 9.445 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004571/0.363, allocations: 303.1 kB / 0.5687 GB, free: 9.148 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.363, allocations: 0 / 0.5687 GB, free: 9.148 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006566/0.3636, allocations: 135.9 kB / 0.5688 GB, free: 9.016 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.002666/0.3663, allocations: 1.355 MB / 0.5701 GB, free: 7.785 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009498/0.3673, allocations: 386.5 kB / 0.5705 GB, free: 7.395 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.084e-06/0.3673, allocations: 4 kB / 0.5705 GB, free: 7.391 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003965/0.3677, allocations: 226.6 kB / 0.5707 GB, free: 7.156 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008128/0.3685, allocations: 140.5 kB / 0.5708 GB, free: 7.027 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006597/0.3751, allocations: 4.291 MB / 0.575 GB, free: 2.527 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005819/0.3756, allocations: 0.8738 MB / 0.5759 GB, free: 1.625 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002852/0.3759, allocations: 72.23 kB / 0.5759 GB, free: 1.555 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002604/0.3762, allocations: 179.3 kB / 0.5761 GB, free: 1.379 MB / 414.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3762, allocations: 0 / 0.5761 GB, free: 1.379 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05934/0.4355, allocations: 12.42 MB / 0.5882 GB, free: 5.074 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.92/14.36, allocations: 4.062 kB / 0.5882 GB, free: 5.07 MB / 430.1 MB " [Timeout remaining time 645] (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: 17.520422258996405] Failed to read output from testmodel.py, exit status != 0: 14.597528831043746 14.614417657 14.271837367 Calling exit ...