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.001375/0.001375, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001512/0.001512, allocations: 214.9 kB / 24.52 MB, free: 3.941 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: 7.797 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.1912/0.1912, allocations: 38.55 MB / 353.2 MB, free: 12.31 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.002058/0.002058, allocations: 67.89 kB / 493.3 MB, free: 4.711 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3715/0.3735, allocations: 62.47 MB / 0.5427 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.008158/0.3817, allocations: 5.508 MB / 0.5481 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004045/0.3857, allocations: 2.121 MB / 0.5502 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004167/0.3862, allocations: 23.59 kB / 0.5502 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006348/0.3868, allocations: 168 kB / 0.5503 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00121/0.388, allocations: 456.5 kB / 0.5508 GB, free: 9.926 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000669/0.3887, allocations: 249.5 kB / 0.551 GB, free: 9.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001215/0.3899, allocations: 0.8592 MB / 0.5518 GB, free: 9.23 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005291/0.3904, allocations: 403.8 kB / 0.5522 GB, free: 8.949 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005537/0.391, allocations: 362 kB / 0.5526 GB, free: 8.742 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005539/0.3915, allocations: 357.9 kB / 0.5529 GB, free: 8.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.556e-05/0.3916, allocations: 62.06 kB / 0.553 GB, free: 8.512 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003278/0.392, allocations: 146.9 kB / 0.5531 GB, free: 8.469 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002357/0.3922, allocations: 192.2 kB / 0.5533 GB, free: 8.328 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003161/0.3925, allocations: 249.6 kB / 0.5535 GB, free: 8.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001181/0.3937, allocations: 0.7916 MB / 0.5543 GB, free: 7.629 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.3937, allocations: 1.062 kB / 0.5543 GB, free: 7.629 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3937, allocations: 0 / 0.5543 GB, free: 7.629 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.348e-05/0.3937, allocations: 0 / 0.5543 GB, free: 7.629 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.001928/0.3956, allocations: 0.8685 MB / 0.5552 GB, free: 6.941 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.3957, allocations: 13.55 kB / 0.5552 GB, free: 6.938 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.008e-05/0.3957, allocations: 16.31 kB / 0.5552 GB, free: 6.934 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001023/0.3958, allocations: 81.45 kB / 0.5553 GB, free: 6.859 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001403/0.396, allocations: 71.11 kB / 0.5553 GB, free: 6.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.397, allocations: 471.7 kB / 0.5558 GB, free: 6.449 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.731e-05/0.3971, allocations: 37.92 kB / 0.5558 GB, free: 6.426 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001392/0.3972, allocations: 41.22 kB / 0.5559 GB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009964/0.3982, allocations: 0.5394 MB / 0.5564 GB, free: 6.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.384e-05/0.3982, allocations: 0.9062 kB / 0.5564 GB, free: 6.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.648e-05/0.3983, allocations: 20.55 kB / 0.5564 GB, free: 6.004 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.884e-05/0.3984, allocations: 20.39 kB / 0.5564 GB, free: 6 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006212/0.399, allocations: 343.2 kB / 0.5568 GB, free: 5.715 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00287/0.4019, allocations: 1.892 MB / 0.5586 GB, free: 3.719 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004858/0.4024, allocations: 217.8 kB / 0.5588 GB, free: 3.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001461/0.4025, allocations: 82.61 kB / 0.5589 GB, free: 3.391 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.535e-05/0.4025, allocations: 8 kB / 0.5589 GB, free: 3.383 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003039/0.4028, allocations: 160.7 kB / 0.559 GB, free: 3.207 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.774e-06/0.4028, allocations: 4 kB / 0.5591 GB, free: 3.203 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001768/0.4046, allocations: 0.8653 MB / 0.5599 GB, free: 2.301 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.881e-05/0.4047, allocations: 136.5 kB / 0.56 GB, free: 2.137 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006395/0.4054, allocations: 437.8 kB / 0.5604 GB, free: 1.703 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.543e-05/0.4054, allocations: 33.7 kB / 0.5605 GB, free: 1.664 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000259/0.4056, allocations: 312.5 kB / 0.5608 GB, free: 1.352 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.683e-05/0.4057, allocations: 95.44 kB / 0.5609 GB, free: 1.258 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.4059, allocations: 78.08 kB / 0.5609 GB, free: 1.176 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.4061, allocations: 350.7 kB / 0.5613 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.4062, allocations: 92.83 kB / 0.5614 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003069/0.4065, allocations: 247.1 kB / 0.5616 GB, free: 436 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004454/0.407, allocations: 320 kB / 0.5619 GB, free: 56 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.407, allocations: 4 kB / 0.5619 GB, free: 52 kB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009244/0.4079, allocations: 446 kB / 0.5623 GB, free: 15.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.4079, allocations: 11.92 kB / 0.5623 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.4079, allocations: 4 kB / 0.5623 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004413/0.4084, allocations: 88.78 kB / 0.5624 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002606/0.4086, allocations: 75.84 kB / 0.5625 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002383/0.411, allocations: 1.713 MB / 0.5642 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003173/0.4113, allocations: 23.94 kB / 0.5642 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.159e-05/0.4114, allocations: 20.06 kB / 0.5642 GB, free: 13.56 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.0002786/0.4117, allocations: 209.7 kB / 0.5644 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.515e-05/0.4117, allocations: 55.59 kB / 0.5645 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006158/0.4123, allocations: 284.4 kB / 0.5647 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.4123, allocations: 4 kB / 0.5647 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.4124, allocations: 4 kB / 0.5648 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.4124, allocations: 0 / 0.5648 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001272/0.4136, allocations: 0.7206 MB / 0.5655 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.4136, allocations: 4 kB / 0.5655 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002811/0.4139, allocations: 39.97 kB / 0.5655 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002309/0.4142, allocations: 52.75 kB / 0.5655 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.784e-05/0.4142, allocations: 11.98 kB / 0.5656 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001564/0.4157, allocations: 1.432 MB / 0.567 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.084e-06/0.4158, allocations: 7.969 kB / 0.567 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008285/0.4166, allocations: 472.8 kB / 0.5674 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001533/0.4167, allocations: 59.69 kB / 0.5675 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.252e-05/0.4168, allocations: 11.98 kB / 0.5675 GB, free: 10 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002526/0.417, allocations: 12 kB / 0.5675 GB, free: 9.988 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.398e-05/0.4171, allocations: 23.95 kB / 0.5675 GB, free: 9.965 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.4172, allocations: 4 kB / 0.5675 GB, free: 9.961 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004545/0.4176, allocations: 315.2 kB / 0.5678 GB, free: 9.652 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4176, allocations: 3.938 kB / 0.5678 GB, free: 9.648 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000673/0.4183, allocations: 123.9 kB / 0.5679 GB, free: 9.527 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.002842/0.4211, allocations: 1.397 MB / 0.5693 GB, free: 8.293 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008753/0.422, allocations: 383.2 kB / 0.5697 GB, free: 7.906 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.422, allocations: 0 / 0.5697 GB, free: 7.906 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004117/0.4224, allocations: 234.8 kB / 0.5699 GB, free: 7.664 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008109/0.4232, allocations: 144.7 kB / 0.57 GB, free: 7.527 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006857/0.4301, allocations: 4.303 MB / 0.5742 GB, free: 3.016 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004178/0.4305, allocations: 281.7 kB / 0.5745 GB, free: 2.715 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003289/0.4308, allocations: 64.23 kB / 0.5746 GB, free: 2.652 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002875/0.4311, allocations: 179.4 kB / 0.5747 GB, free: 2.477 MB / 414.1 MB Notification: Performance of SimCode: time 1.153e-06/0.4311, allocations: 0 / 0.5747 GB, free: 2.477 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04361/0.4747, allocations: 12.68 MB / 0.5871 GB, free: 5.953 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.1/14.58, allocations: 4.062 kB / 0.5871 GB, free: 5.949 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.728311176993884] Failed to read output from testmodel.py, exit status != 0: 14.823880572104827 14.846420381 14.448235118 Calling exit ...