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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 108 kB / 17.06 MB, free: 6.117 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 199.9 kB / 18 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1794/0.1794, allocations: 38.03 MB / 329.9 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 60.14 kB / 457.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3532/0.3545, allocations: 58.05 MB / 0.5036 GB, free: 7.438 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.006485/0.3611, allocations: 5.697 MB / 0.5092 GB, free: 3.492 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003171/0.3643, allocations: 2.122 MB / 0.5112 GB, free: 1.992 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003468/0.3646, allocations: 19.03 kB / 0.5113 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005946/0.3652, allocations: 169.2 kB / 0.5114 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009357/0.3662, allocations: 419.8 kB / 0.5118 GB, free: 1.645 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006322/0.3668, allocations: 243.1 kB / 0.5121 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001094/0.368, allocations: 0.8435 MB / 0.5129 GB, free: 1.121 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006403/0.3686, allocations: 0.4927 MB / 0.5134 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005436/0.3692, allocations: 358.3 kB / 0.5137 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004375/0.3696, allocations: 347.1 kB / 0.514 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.682e-05/0.3697, allocations: 54.5 kB / 0.5141 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002257/0.3699, allocations: 101.3 kB / 0.5142 GB, free: 0.582 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000179/0.3701, allocations: 190 kB / 0.5144 GB, free: 496 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002776/0.3704, allocations: 299.6 kB / 0.5147 GB, free: 312 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008127/0.3712, allocations: 0.7405 MB / 0.5154 GB, free: 4 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3712, allocations: 2.312 kB / 0.5154 GB, free: 4 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3712, allocations: 4 kB / 0.5154 GB, free: 0 / 382.1 MB Notification: Performance of Transformations before backend: time 1.514e-05/0.3713, allocations: 0 / 0.5154 GB, free: 0 / 382.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.001727/0.373, allocations: 0.8939 MB / 0.5163 GB, free: 15.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.373, allocations: 13.27 kB / 0.5163 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001143/0.3732, allocations: 79.52 kB / 0.5163 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.3733, allocations: 71.81 kB / 0.5164 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009598/0.3743, allocations: 0.524 MB / 0.5169 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.914e-05/0.3743, allocations: 34.53 kB / 0.517 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001395/0.3745, allocations: 41.28 kB / 0.517 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.3755, allocations: 0.5213 MB / 0.5175 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.3755, allocations: 1.469 kB / 0.5175 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.667e-05/0.3756, allocations: 17.28 kB / 0.5175 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-05/0.3757, allocations: 15.53 kB / 0.5175 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007163/0.3764, allocations: 341.1 kB / 0.5179 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002725/0.3791, allocations: 2.06 MB / 0.5199 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004273/0.3796, allocations: 236.7 kB / 0.5201 GB, free: 12.72 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001295/0.3797, allocations: 81.2 kB / 0.5202 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.877e-05/0.3798, allocations: 6.312 kB / 0.5202 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002893/0.38, allocations: 168.8 kB / 0.5203 GB, free: 12.56 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.294e-06/0.3801, allocations: 0 / 0.5203 GB, free: 12.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001768/0.3818, allocations: 0.9234 MB / 0.5212 GB, free: 11.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.302e-05/0.3819, allocations: 131.5 kB / 0.5214 GB, free: 11.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004867/0.3824, allocations: 427.5 kB / 0.5218 GB, free: 11.56 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.3824, allocations: 30.89 kB / 0.5218 GB, free: 11.53 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001949/0.3826, allocations: 299.9 kB / 0.5221 GB, free: 11.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.921e-05/0.3827, allocations: 86.38 kB / 0.5222 GB, free: 11.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.3829, allocations: 81.48 kB / 0.5223 GB, free: 11.17 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.383, allocations: 354.8 kB / 0.5226 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.3832, allocations: 88.88 kB / 0.5227 GB, free: 10.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002647/0.3834, allocations: 222.1 kB / 0.5229 GB, free: 10.6 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004077/0.3839, allocations: 322.9 kB / 0.5232 GB, free: 10.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3839, allocations: 1.25 kB / 0.5232 GB, free: 10.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008974/0.3848, allocations: 442 kB / 0.5236 GB, free: 10.15 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.3848, allocations: 6.875 kB / 0.5236 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.3848, allocations: 8.156 kB / 0.5236 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004335/0.3853, allocations: 92.77 kB / 0.5237 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.3855, allocations: 69.06 kB / 0.5238 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002389/0.3879, allocations: 1.822 MB / 0.5256 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003048/0.3882, allocations: 23.44 kB / 0.5256 GB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.221e-05/0.3883, allocations: 17.33 kB / 0.5256 GB, free: 8.5 MB / 398.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.0003102/0.3886, allocations: 205.2 kB / 0.5258 GB, free: 8.34 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.99e-05/0.3887, allocations: 52.83 kB / 0.5259 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000635/0.3893, allocations: 286.2 kB / 0.5261 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.3894, allocations: 3.453 kB / 0.5261 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.3894, allocations: 1.375 kB / 0.5261 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.3894, allocations: 2.875 kB / 0.5261 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001548/0.3909, allocations: 0.772 MB / 0.5269 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.391, allocations: 9.688 kB / 0.5269 GB, free: 7.668 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002999/0.3913, allocations: 54.33 kB / 0.5269 GB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002378/0.3915, allocations: 51.41 kB / 0.527 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.211e-05/0.3915, allocations: 5.438 kB / 0.527 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001629/0.3932, allocations: 1.538 MB / 0.5285 GB, free: 6.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3932, allocations: 0 / 0.5285 GB, free: 6.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008834/0.3941, allocations: 482.5 kB / 0.529 GB, free: 5.867 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001679/0.3943, allocations: 138.3 kB / 0.5291 GB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.183e-05/0.3944, allocations: 7.062 kB / 0.5291 GB, free: 5.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002345/0.3946, allocations: 13.45 kB / 0.5291 GB, free: 5.727 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.399e-05/0.3947, allocations: 18.58 kB / 0.5291 GB, free: 5.727 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.211e-05/0.3947, allocations: 14.08 kB / 0.5291 GB, free: 5.719 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004556/0.3952, allocations: 297.7 kB / 0.5294 GB, free: 5.578 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3952, allocations: 3.938 kB / 0.5294 GB, free: 5.574 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005884/0.3958, allocations: 113 kB / 0.5295 GB, free: 5.562 MB / 398.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.001877/0.3977, allocations: 1.301 MB / 0.5308 GB, free: 4.637 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009659/0.3987, allocations: 406.3 kB / 0.5312 GB, free: 4.414 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3987, allocations: 0 / 0.5312 GB, free: 4.414 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004528/0.3991, allocations: 237.1 kB / 0.5314 GB, free: 4.262 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008672/0.4, allocations: 133.2 kB / 0.5316 GB, free: 4.219 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007065/0.4071, allocations: 4.218 MB / 0.5357 GB, free: 1.504 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006502/0.4078, allocations: 0.8825 MB / 0.5365 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003467/0.4081, allocations: 76.8 kB / 0.5366 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002784/0.4084, allocations: 172.9 kB / 0.5368 GB, free: 0.625 MB / 398.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4084, allocations: 0 / 0.5368 GB, free: 0.625 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0426/0.451, allocations: 11.68 MB / 0.5482 GB, free: 10.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.33, allocations: 8 kB / 0.5482 GB, free: 10.14 MB / 414.1 MB (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 --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)