Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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.001813/0.001813, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.002233/0.002233, allocations: 210.9 kB / 23.73 MB, free: 4.41 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.568/1.568, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2212/0.2212, allocations: 38.56 MB / 352.5 MB, free: 12.44 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",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.002176/0.002176, allocations: 67.91 kB / 492.5 MB, free: 4.742 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3978/0.4, allocations: 62.46 MB / 0.5419 GB, free: 276 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.009326/0.4093, allocations: 5.049 MB / 0.5469 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004663/0.414, allocations: 1.991 MB / 0.5488 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006577/0.4146, allocations: 21.31 kB / 0.5488 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008943/0.4155, allocations: 151.3 kB / 0.549 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001924/0.4175, allocations: 395.8 kB / 0.5494 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006951/0.4182, allocations: 223.2 kB / 0.5496 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001236/0.4194, allocations: 0.7097 MB / 0.5503 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005173/0.4199, allocations: 326.4 kB / 0.5506 GB, free: 9.664 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006203/0.4205, allocations: 313.3 kB / 0.5509 GB, free: 9.484 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005749/0.4211, allocations: 290.3 kB / 0.5511 GB, free: 9.305 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.247e-05/0.4212, allocations: 47.56 kB / 0.5512 GB, free: 9.305 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004106/0.4216, allocations: 135.6 kB / 0.5513 GB, free: 9.266 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001994/0.4218, allocations: 157 kB / 0.5515 GB, free: 9.148 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003365/0.4221, allocations: 218.2 kB / 0.5517 GB, free: 9.016 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001141/0.4233, allocations: 0.713 MB / 0.5524 GB, free: 8.516 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.4233, allocations: 0 / 0.5524 GB, free: 8.516 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4233, allocations: 1.312 kB / 0.5524 GB, free: 8.516 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.4233, allocations: 0 / 0.5524 GB, free: 8.516 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.001913/0.4252, allocations: 0.8022 MB / 0.5532 GB, free: 7.875 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.833e-05/0.4253, allocations: 12.61 kB / 0.5532 GB, free: 7.871 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001129/0.4254, allocations: 76 kB / 0.5532 GB, free: 7.801 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.4255, allocations: 55.8 kB / 0.5533 GB, free: 7.773 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009795/0.4265, allocations: 428.9 kB / 0.5537 GB, free: 7.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.001e-05/0.4266, allocations: 27.62 kB / 0.5537 GB, free: 7.418 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.226e-05/0.4266, allocations: 40.64 kB / 0.5538 GB, free: 7.402 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008496/0.4275, allocations: 494.8 kB / 0.5542 GB, free: 7.035 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.4275, allocations: 1.125 kB / 0.5542 GB, free: 7.035 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.601e-05/0.4276, allocations: 16.56 kB / 0.5543 GB, free: 7.023 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.4276, allocations: 9.094 kB / 0.5543 GB, free: 7.023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005648/0.4281, allocations: 274.3 kB / 0.5545 GB, free: 6.887 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002652/0.4308, allocations: 1.707 MB / 0.5562 GB, free: 5.383 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005976/0.4314, allocations: 238.9 kB / 0.5564 GB, free: 5.191 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000158/0.4315, allocations: 78.98 kB / 0.5565 GB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.617e-05/0.4316, allocations: 7.938 kB / 0.5565 GB, free: 5.098 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003347/0.4319, allocations: 173.8 kB / 0.5567 GB, free: 4.906 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.884e-06/0.4319, allocations: 0 / 0.5567 GB, free: 4.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001869/0.4338, allocations: 0.8568 MB / 0.5575 GB, free: 4.016 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.4339, allocations: 132.5 kB / 0.5576 GB, free: 3.855 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005472/0.4345, allocations: 425.8 kB / 0.558 GB, free: 3.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.946e-05/0.4345, allocations: 29.7 kB / 0.5581 GB, free: 3.395 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002329/0.4347, allocations: 272.2 kB / 0.5583 GB, free: 3.125 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.4348, allocations: 99.31 kB / 0.5584 GB, free: 3.027 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.4349, allocations: 77.64 kB / 0.5585 GB, free: 2.945 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.4351, allocations: 346.8 kB / 0.5588 GB, free: 2.598 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.4353, allocations: 83.95 kB / 0.5589 GB, free: 2.516 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002852/0.4356, allocations: 241.9 kB / 0.5591 GB, free: 2.215 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004943/0.4361, allocations: 315.8 kB / 0.5594 GB, free: 1.852 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.4361, allocations: 4 kB / 0.5594 GB, free: 1.848 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009151/0.437, allocations: 429.6 kB / 0.5599 GB, free: 1.418 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.437, allocations: 8 kB / 0.5599 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.437, allocations: 4 kB / 0.5599 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004395/0.4375, allocations: 93.22 kB / 0.56 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002414/0.4377, allocations: 71.84 kB / 0.56 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002728/0.4404, allocations: 1.906 MB / 0.5619 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003751/0.4408, allocations: 19.98 kB / 0.5619 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.56e-05/0.4408, allocations: 19.94 kB / 0.5619 GB, free: 15.18 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.0003132/0.4412, allocations: 197.7 kB / 0.5621 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.466e-05/0.4412, allocations: 47.72 kB / 0.5622 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006656/0.4419, allocations: 294.1 kB / 0.5624 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.4419, allocations: 4 kB / 0.5624 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.4419, allocations: 0 / 0.5624 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.4419, allocations: 3.984 kB / 0.5624 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.4432, allocations: 0.7176 MB / 0.5631 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.4432, allocations: 0 / 0.5631 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002606/0.4435, allocations: 43.92 kB / 0.5632 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002237/0.4437, allocations: 52.8 kB / 0.5632 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.302e-05/0.4437, allocations: 8 kB / 0.5632 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001477/0.4452, allocations: 1.436 MB / 0.5646 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.4452, allocations: 4.094 kB / 0.5647 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008858/0.4461, allocations: 0.4948 MB / 0.5651 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001819/0.4462, allocations: 59.73 kB / 0.5652 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.157e-05/0.4463, allocations: 11.98 kB / 0.5652 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.4466, allocations: 8 kB / 0.5652 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.196e-05/0.4466, allocations: 27.95 kB / 0.5652 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/0.4467, allocations: 7.938 kB / 0.5652 GB, free: 11.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004014/0.4471, allocations: 291.1 kB / 0.5655 GB, free: 11.27 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4471, allocations: 0 / 0.5655 GB, free: 11.27 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006964/0.4478, allocations: 127.9 kB / 0.5656 GB, free: 11.14 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.002869/0.4506, allocations: 1.41 MB / 0.567 GB, free: 9.895 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.4517, allocations: 391.2 kB / 0.5674 GB, free: 9.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.4517, allocations: 0 / 0.5674 GB, free: 9.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004246/0.4521, allocations: 254.5 kB / 0.5676 GB, free: 9.238 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007754/0.4529, allocations: 134.7 kB / 0.5678 GB, free: 9.117 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006599/0.4595, allocations: 4.084 MB / 0.5718 GB, free: 4.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.4598, allocations: 251.9 kB / 0.572 GB, free: 4.551 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003136/0.4601, allocations: 71.34 kB / 0.5721 GB, free: 4.477 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002706/0.4604, allocations: 163.4 kB / 0.5722 GB, free: 4.316 MB / 414.1 MB Notification: Performance of SimCode: time 1.473e-06/0.4604, allocations: 3.938 kB / 0.5722 GB, free: 4.312 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06091/0.5213, allocations: 12.48 MB / 0.5844 GB, free: 7.98 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.6/14.12, allocations: 8 kB / 0.5844 GB, free: 7.973 MB / 430.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.299320469610393] Failed to read output from testmodel.py, exit status != 0: 14.318630510941148 14.334835104 13.908042656 Calling exit ...