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.00147/0.00147, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001516/0.001516, allocations: 219.7 kB / 23.73 MB, free: 4.16 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.495/1.495, allocations: 230.6 MB / 257.5 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.2043/0.2043, allocations: 38.55 MB / 352.5 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: "" <> 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.002153/0.002153, allocations: 63.89 kB / 492.5 MB, free: 4.699 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3558/0.358, allocations: 62.47 MB / 0.5419 GB, free: 240 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.00803/0.366, allocations: 5.51 MB / 0.5473 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004043/0.37, allocations: 2.139 MB / 0.5494 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004112/0.3704, allocations: 27.12 kB / 0.5494 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006545/0.3711, allocations: 163.8 kB / 0.5496 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001199/0.3723, allocations: 463.8 kB / 0.55 GB, free: 9.906 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006646/0.373, allocations: 254.4 kB / 0.5503 GB, free: 9.711 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001197/0.3742, allocations: 0.859 MB / 0.5511 GB, free: 9.211 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005307/0.3747, allocations: 383 kB / 0.5515 GB, free: 8.949 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005573/0.3752, allocations: 371.1 kB / 0.5518 GB, free: 8.734 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005849/0.3758, allocations: 332.6 kB / 0.5521 GB, free: 8.535 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.821e-05/0.3759, allocations: 55.38 kB / 0.5522 GB, free: 8.535 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00035/0.3763, allocations: 142 kB / 0.5523 GB, free: 8.496 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000233/0.3765, allocations: 192.7 kB / 0.5525 GB, free: 8.355 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003237/0.3768, allocations: 252.5 kB / 0.5528 GB, free: 8.203 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001235/0.3781, allocations: 0.793 MB / 0.5535 GB, free: 7.652 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3781, allocations: 4 kB / 0.5535 GB, free: 7.648 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3781, allocations: 0 / 0.5535 GB, free: 7.648 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.788e-05/0.3781, allocations: 0 / 0.5535 GB, free: 7.648 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.00225/0.3803, allocations: 0.8608 MB / 0.5544 GB, free: 6.969 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.119e-05/0.3804, allocations: 14.3 kB / 0.5544 GB, free: 6.965 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001204/0.3805, allocations: 78.09 kB / 0.5545 GB, free: 6.895 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.3807, allocations: 69.92 kB / 0.5545 GB, free: 6.855 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/0.3818, allocations: 472.4 kB / 0.555 GB, free: 6.484 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.909e-05/0.3818, allocations: 38.86 kB / 0.555 GB, free: 6.465 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.3819, allocations: 40.25 kB / 0.5551 GB, free: 6.453 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009526/0.3829, allocations: 0.5474 MB / 0.5556 GB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/0.3829, allocations: 5.109 kB / 0.5556 GB, free: 6.047 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.856e-05/0.383, allocations: 15.97 kB / 0.5556 GB, free: 6.035 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.484e-05/0.383, allocations: 20.7 kB / 0.5556 GB, free: 6.031 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007308/0.3838, allocations: 333.1 kB / 0.556 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003514/0.3873, allocations: 1.9 MB / 0.5578 GB, free: 3.754 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006638/0.3879, allocations: 218.5 kB / 0.558 GB, free: 3.516 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002218/0.3882, allocations: 78.67 kB / 0.5581 GB, free: 3.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.771e-05/0.3882, allocations: 4 kB / 0.5581 GB, free: 3.426 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004338/0.3886, allocations: 172.7 kB / 0.5583 GB, free: 3.238 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.585e-06/0.3886, allocations: 0 / 0.5583 GB, free: 3.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002751/0.3914, allocations: 0.8661 MB / 0.5591 GB, free: 2.336 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.3915, allocations: 132.5 kB / 0.5592 GB, free: 2.176 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008577/0.3924, allocations: 453.7 kB / 0.5597 GB, free: 1.727 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.676e-05/0.3924, allocations: 29.7 kB / 0.5597 GB, free: 1.691 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003122/0.3927, allocations: 308.5 kB / 0.56 GB, free: 1.383 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.3928, allocations: 95.5 kB / 0.5601 GB, free: 1.289 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001611/0.393, allocations: 74.09 kB / 0.5601 GB, free: 1.211 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002181/0.3932, allocations: 358.7 kB / 0.5605 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002403/0.3935, allocations: 92.77 kB / 0.5606 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004128/0.3939, allocations: 247.1 kB / 0.5608 GB, free: 464 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006399/0.3945, allocations: 320 kB / 0.5611 GB, free: 84 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.3945, allocations: 8 kB / 0.5611 GB, free: 76 kB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001408/0.3959, allocations: 438.2 kB / 0.5615 GB, free: 15.63 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.595e-05/0.396, allocations: 8 kB / 0.5616 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.396, allocations: 4 kB / 0.5616 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006142/0.3966, allocations: 88.77 kB / 0.5616 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003843/0.397, allocations: 71.91 kB / 0.5617 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003152/0.4001, allocations: 1.725 MB / 0.5634 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004729/0.4006, allocations: 12 kB / 0.5634 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.846e-05/0.4007, allocations: 23.98 kB / 0.5634 GB, free: 13.59 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.0004418/0.4011, allocations: 209.8 kB / 0.5636 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.4012, allocations: 51.61 kB / 0.5637 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000852/0.4021, allocations: 284.5 kB / 0.5639 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.4021, allocations: 0 / 0.5639 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4021, allocations: 4 kB / 0.564 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.4021, allocations: 0 / 0.564 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.4039, allocations: 0.7167 MB / 0.5647 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.4039, allocations: 7.938 kB / 0.5647 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003869/0.4043, allocations: 47.91 kB / 0.5647 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002868/0.4045, allocations: 44.81 kB / 0.5647 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.501e-05/0.4046, allocations: 11.98 kB / 0.5648 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001909/0.4065, allocations: 1.436 MB / 0.5662 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4065, allocations: 0 / 0.5662 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.4076, allocations: 484.8 kB / 0.5666 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002351/0.4078, allocations: 59.69 kB / 0.5667 GB, free: 10.04 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.371e-05/0.4079, allocations: 7.938 kB / 0.5667 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003312/0.4082, allocations: 16.11 kB / 0.5667 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.878e-05/0.4083, allocations: 23.95 kB / 0.5667 GB, free: 9.992 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.856e-05/0.4084, allocations: 12 kB / 0.5667 GB, free: 9.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005623/0.4089, allocations: 311.1 kB / 0.567 GB, free: 9.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4089, allocations: 4.062 kB / 0.567 GB, free: 9.676 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008444/0.4098, allocations: 127.9 kB / 0.5672 GB, free: 9.551 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.003498/0.4133, allocations: 1.391 MB / 0.5685 GB, free: 8.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001096/0.4144, allocations: 382.1 kB / 0.5689 GB, free: 7.934 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.4144, allocations: 5.125 kB / 0.5689 GB, free: 7.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005428/0.4149, allocations: 230.7 kB / 0.5691 GB, free: 7.691 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.416, allocations: 141 kB / 0.5692 GB, free: 7.555 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00867/0.4246, allocations: 4.299 MB / 0.5734 GB, free: 3.047 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004282/0.4251, allocations: 281.7 kB / 0.5737 GB, free: 2.746 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003666/0.4254, allocations: 64.23 kB / 0.5738 GB, free: 2.684 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003435/0.4258, allocations: 175.4 kB / 0.5739 GB, free: 2.512 MB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4258, allocations: 0 / 0.5739 GB, free: 2.512 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04884/0.4746, allocations: 13.01 MB / 0.5866 GB, free: 5.648 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/14.02, allocations: 2.969 kB / 0.5866 GB, free: 5.648 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: 17.16091577988118] Failed to read output from testmodel.py, exit status != 0: 14.21103751892224 14.232852282 13.849248923 Calling exit ...