Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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.001432/0.001432, 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.002856/0.002856, 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.524/1.524, 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 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.1907/0.1907, allocations: 38.52 MB / 353.2 MB, free: 12.56 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_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_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.002114/0.002114, allocations: 71.88 kB / 493.3 MB, free: 4.906 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3473/0.3494, allocations: 62.47 MB / 0.5428 GB, free: 468 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.008678/0.3581, allocations: 5.903 MB / 0.5485 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004457/0.3625, allocations: 2.319 MB / 0.5508 GB, free: 10 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005986/0.3631, allocations: 22.94 kB / 0.5508 GB, free: 9.992 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008028/0.3639, allocations: 177 kB / 0.551 GB, free: 9.852 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001621/0.3655, allocations: 466.1 kB / 0.5514 GB, free: 9.492 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008561/0.3664, allocations: 242.2 kB / 0.5517 GB, free: 9.305 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001437/0.3678, allocations: 0.8601 MB / 0.5525 GB, free: 8.805 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005513/0.3684, allocations: 395.5 kB / 0.5529 GB, free: 8.531 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006039/0.369, allocations: 371.4 kB / 0.5532 GB, free: 8.316 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006/0.3696, allocations: 360.7 kB / 0.5536 GB, free: 8.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.681e-05/0.3697, allocations: 55.16 kB / 0.5536 GB, free: 8.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004461/0.3701, allocations: 151.8 kB / 0.5538 GB, free: 8.043 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002529/0.3704, allocations: 187.5 kB / 0.554 GB, free: 7.906 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004196/0.3708, allocations: 312.5 kB / 0.5543 GB, free: 7.695 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001374/0.3722, allocations: 0.7858 MB / 0.555 GB, free: 7.145 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3722, allocations: 5.031 kB / 0.555 GB, free: 7.141 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3722, allocations: 0 / 0.555 GB, free: 7.141 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.578e-06/0.3722, allocations: 4 kB / 0.555 GB, free: 7.137 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.002163/0.3744, allocations: 0.8602 MB / 0.5559 GB, free: 6.457 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.907e-05/0.3744, allocations: 13.7 kB / 0.5559 GB, free: 6.453 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.508e-05/0.3745, allocations: 15.47 kB / 0.5559 GB, free: 6.449 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001097/0.3746, allocations: 78.56 kB / 0.556 GB, free: 6.379 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001746/0.3747, allocations: 70.69 kB / 0.556 GB, free: 6.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/0.3758, allocations: 471.5 kB / 0.5565 GB, free: 5.969 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.438e-05/0.3758, allocations: 34.41 kB / 0.5565 GB, free: 5.949 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.3759, allocations: 48.97 kB / 0.5566 GB, free: 5.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009029/0.3768, allocations: 0.5144 MB / 0.5571 GB, free: 5.562 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.299e-05/0.3768, allocations: 5.031 kB / 0.5571 GB, free: 5.559 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.823e-05/0.3769, allocations: 21.41 kB / 0.5571 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.525e-05/0.377, allocations: 23.08 kB / 0.5571 GB, free: 5.535 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005982/0.3776, allocations: 334.4 kB / 0.5574 GB, free: 5.371 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002948/0.3805, allocations: 1.994 MB / 0.5594 GB, free: 3.281 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004454/0.381, allocations: 223.6 kB / 0.5596 GB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.3811, allocations: 82.67 kB / 0.5597 GB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.026e-05/0.3811, allocations: 4 kB / 0.5597 GB, free: 2.941 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002766/0.3814, allocations: 165.8 kB / 0.5598 GB, free: 2.758 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.734e-06/0.3814, allocations: 0 / 0.5598 GB, free: 2.758 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001776/0.3832, allocations: 0.8639 MB / 0.5607 GB, free: 1.859 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.763e-05/0.3833, allocations: 144.4 kB / 0.5608 GB, free: 1.688 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005358/0.3838, allocations: 437.8 kB / 0.5612 GB, free: 1.254 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.3839, allocations: 37.69 kB / 0.5613 GB, free: 1.211 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002328/0.3841, allocations: 304.2 kB / 0.5616 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.775e-05/0.3842, allocations: 103.5 kB / 0.5617 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.3843, allocations: 74.08 kB / 0.5617 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002695/0.3846, allocations: 354.7 kB / 0.5621 GB, free: 380 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.3847, allocations: 84.83 kB / 0.5622 GB, free: 296 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002684/0.385, allocations: 225.5 kB / 0.5624 GB, free: 8 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000543/0.3856, allocations: 320.2 kB / 0.5627 GB, free: 15.63 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3856, allocations: 0 / 0.5627 GB, free: 15.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009356/0.3865, allocations: 454 kB / 0.5631 GB, free: 15.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.3865, allocations: 6.656 kB / 0.5631 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.3865, allocations: 4 kB / 0.5631 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004498/0.387, allocations: 92.78 kB / 0.5632 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002677/0.3872, allocations: 71.91 kB / 0.5633 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002273/0.3895, allocations: 1.733 MB / 0.565 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003342/0.3898, allocations: 15.98 kB / 0.565 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.103e-05/0.3899, allocations: 20 kB / 0.565 GB, free: 13.12 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.0002949/0.3902, allocations: 205.7 kB / 0.5652 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.021e-05/0.3903, allocations: 55.67 kB / 0.5652 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000597/0.3908, allocations: 282.2 kB / 0.5655 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.3909, allocations: 0 / 0.5655 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3909, allocations: 4 kB / 0.5655 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.3909, allocations: 3.984 kB / 0.5655 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001254/0.3921, allocations: 0.7627 MB / 0.5663 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.3921, allocations: 4 kB / 0.5663 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002727/0.3924, allocations: 47.91 kB / 0.5663 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002095/0.3926, allocations: 44.81 kB / 0.5664 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.48e-05/0.3926, allocations: 11.98 kB / 0.5664 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001408/0.394, allocations: 1.432 MB / 0.5678 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/0.394, allocations: 7.922 kB / 0.5678 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007652/0.3948, allocations: 473.6 kB / 0.5682 GB, free: 9.598 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001613/0.395, allocations: 63.69 kB / 0.5683 GB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.803e-05/0.395, allocations: 8 kB / 0.5683 GB, free: 9.527 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.3953, allocations: 15.81 kB / 0.5683 GB, free: 9.516 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.293e-05/0.3953, allocations: 27.95 kB / 0.5683 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.3954, allocations: 8 kB / 0.5683 GB, free: 9.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004304/0.3958, allocations: 303.1 kB / 0.5686 GB, free: 9.184 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3958, allocations: 0 / 0.5686 GB, free: 9.184 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006279/0.3964, allocations: 131.9 kB / 0.5688 GB, free: 9.055 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.002627/0.3991, allocations: 1.363 MB / 0.5701 GB, free: 7.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009156/0.4, allocations: 390.1 kB / 0.5705 GB, free: 7.426 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.4, allocations: 1.125 kB / 0.5705 GB, free: 7.426 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003909/0.4004, allocations: 226.7 kB / 0.5707 GB, free: 7.191 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00079/0.4012, allocations: 153.5 kB / 0.5708 GB, free: 7.051 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006785/0.4079, allocations: 4.291 MB / 0.575 GB, free: 2.551 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000573/0.4085, allocations: 0.8816 MB / 0.5759 GB, free: 1.641 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002973/0.4088, allocations: 64.17 kB / 0.5759 GB, free: 1.578 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002677/0.4091, allocations: 179.4 kB / 0.5761 GB, free: 1.402 MB / 414.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4091, allocations: 4 kB / 0.5761 GB, free: 1.398 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0424/0.4515, allocations: 12.4 MB / 0.5882 GB, free: 5.098 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.91/14.37, allocations: 4.062 kB / 0.5882 GB, free: 5.094 MB / 430.1 MB " [Timeout remaining time 645] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.51143775501987] Failed to read output from testmodel.py, exit status != 0: 14.6041980140144 14.631577853 14.254227677 Calling exit ...