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.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_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.001042/0.001042, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.001106/0.001106, allocations: 183.1 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.407/1.407, allocations: 205.4 MB / 223.4 MB, free: 5.301 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3626/0.3626, allocations: 38.05 MB / 309.7 MB, free: 9.062 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005372/0.0005372, allocations: 12 kB / 376.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1332, allocations: 56.33 MB / 433 MB, free: 6.582 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.006792/0.14, allocations: 5.601 MB / 438.6 MB, free: 0.957 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003522/0.1436, allocations: 2.14 MB / 440.7 MB, free: 14.81 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003224/0.1439, allocations: 31.81 kB / 440.7 MB, free: 14.78 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005285/0.1445, allocations: 155 kB / 440.9 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008975/0.1454, allocations: 401.8 kB / 441.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005097/0.1459, allocations: 207.7 kB / 441.5 MB, free: 14.03 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001001/0.1469, allocations: 0.8913 MB / 442.4 MB, free: 13.13 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004555/0.1474, allocations: 366.2 kB / 442.7 MB, free: 12.76 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003756/0.1478, allocations: 282.7 kB / 443 MB, free: 12.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004127/0.1482, allocations: 318.7 kB / 443.3 MB, free: 12.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.308e-05/0.1483, allocations: 28 kB / 443.3 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001671/0.1484, allocations: 71.97 kB / 443.4 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.1486, allocations: 151.5 kB / 443.6 MB, free: 11.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.1487, allocations: 133.4 kB / 443.7 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005196/0.1492, allocations: 0.5649 MB / 444.3 MB, free: 11.22 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1493, allocations: 0 / 444.3 MB, free: 11.22 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1493, allocations: 0 / 444.3 MB, free: 11.22 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.939e-06/0.1493, allocations: 0 / 444.3 MB, free: 11.22 MB / 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.001446/0.1507, allocations: 0.7967 MB / 445.1 MB, free: 10.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.1508, allocations: 11.98 kB / 445.1 MB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000111/0.1509, allocations: 86.52 kB / 445.1 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.151, allocations: 63.25 kB / 445.2 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007842/0.1518, allocations: 497.6 kB / 445.7 MB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.602e-05/0.1519, allocations: 36.95 kB / 445.7 MB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.152, allocations: 47.98 kB / 445.8 MB, free: 9.602 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000799/0.1528, allocations: 0.5095 MB / 446.3 MB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.1528, allocations: 7.922 kB / 446.3 MB, free: 9.043 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.32e-05/0.1529, allocations: 20 kB / 446.3 MB, free: 9.023 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.758e-05/0.1529, allocations: 13 kB / 446.3 MB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000516/0.1535, allocations: 335.7 kB / 446.7 MB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002446/0.1559, allocations: 2.062 MB / 448.7 MB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004314/0.1564, allocations: 239.6 kB / 449 MB, free: 6.242 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001232/0.1565, allocations: 82.55 kB / 449 MB, free: 6.152 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.576e-05/0.1566, allocations: 8.219 kB / 449 MB, free: 6.145 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000268/0.1568, allocations: 166.2 kB / 449.2 MB, free: 5.961 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.393e-06/0.1568, allocations: 0 / 449.2 MB, free: 5.961 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001612/0.1585, allocations: 0.9253 MB / 450.1 MB, free: 4.977 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.226e-05/0.1586, allocations: 128.5 kB / 450.3 MB, free: 4.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005449/0.1591, allocations: 433.7 kB / 450.7 MB, free: 4.387 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.1591, allocations: 33.7 kB / 450.7 MB, free: 4.348 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002117/0.1594, allocations: 291.7 kB / 451 MB, free: 4.059 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.966e-05/0.1594, allocations: 90.64 kB / 451.1 MB, free: 3.969 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.89e-05/0.1595, allocations: 12 kB / 451.1 MB, free: 3.957 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.1596, allocations: 354.7 kB / 451.4 MB, free: 3.602 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.1598, allocations: 92.83 kB / 451.5 MB, free: 3.512 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002519/0.1601, allocations: 221.5 kB / 451.7 MB, free: 3.234 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001945/0.1603, allocations: 112 kB / 451.9 MB, free: 3.125 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1603, allocations: 0 / 451.9 MB, free: 3.125 MB / 382.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008118/0.1611, allocations: 437.5 kB / 452.3 MB, free: 2.688 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.953e-05/0.1611, allocations: 11.91 kB / 452.3 MB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.1612, allocations: 4 kB / 452.3 MB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004165/0.1616, allocations: 101.2 kB / 452.4 MB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002454/0.1618, allocations: 71.91 kB / 452.5 MB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002149/0.164, allocations: 1.699 MB / 454.2 MB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.1643, allocations: 24.05 kB / 454.2 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.613e-05/0.1643, allocations: 20.23 kB / 454.2 MB, free: 0.625 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002413/0.1645, allocations: 205.7 kB / 454.4 MB, free: 424 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.957e-05/0.1646, allocations: 43.53 kB / 454.5 MB, free: 380 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004964/0.1651, allocations: 282 kB / 454.7 MB, free: 88 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1651, allocations: 4 kB / 454.7 MB, free: 84 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.1651, allocations: 4 kB / 454.7 MB, free: 80 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.1651, allocations: 11.92 kB / 454.7 MB, free: 68 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2628/0.428, allocations: 0.7639 MB / 455.5 MB, free: 50.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.428, allocations: 0 / 455.5 MB, free: 50.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002422/0.4283, allocations: 45.58 kB / 455.6 MB, free: 50.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000185/0.4285, allocations: 48.88 kB / 455.6 MB, free: 50.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.4285, allocations: 6.938 kB / 455.6 MB, free: 50.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009772/0.4295, allocations: 1.431 MB / 457 MB, free: 49.58 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4295, allocations: 6.75 kB / 457 MB, free: 49.58 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005754/0.4301, allocations: 479 kB / 457.5 MB, free: 49.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.4302, allocations: 144.8 kB / 457.7 MB, free: 49.33 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.714e-05/0.4302, allocations: 9.25 kB / 457.7 MB, free: 49.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001998/0.4305, allocations: 12.98 kB / 457.7 MB, free: 49.33 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.559e-05/0.4305, allocations: 24.58 kB / 457.7 MB, free: 49.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.4306, allocations: 7.625 kB / 457.7 MB, free: 49.33 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002767/0.4308, allocations: 296 kB / 458 MB, free: 49.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4309, allocations: 1.75 kB / 458 MB, free: 49.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005448/0.4314, allocations: 111.3 kB / 458.1 MB, free: 49.25 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00148/0.4329, allocations: 1.297 MB / 459.4 MB, free: 48.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006288/0.4335, allocations: 387.5 kB / 459.8 MB, free: 48.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4335, allocations: 3.906 kB / 459.8 MB, free: 48.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002847/0.4338, allocations: 234.4 kB / 460 MB, free: 48.22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006197/0.4345, allocations: 125.3 kB / 460.1 MB, free: 48.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003695/0.4382, allocations: 3.097 MB / 463.2 MB, free: 46.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.4385, allocations: 0.8798 MB / 464.1 MB, free: 46.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000241/0.4388, allocations: 66.86 kB / 464.2 MB, free: 46.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002256/0.439, allocations: 174.6 kB / 464.4 MB, free: 46.19 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.439, allocations: 3.828 kB / 464.4 MB, free: 46.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02542/0.4644, allocations: 10.47 MB / 474.8 MB, free: 45.17 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000197/0.4647, allocations: 251.8 kB / 475.1 MB, free: 44.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.108/2.573, allocations: 0 / 475.1 MB, free: 44.84 MB / 382.1 MB (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/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --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) Environment - environmentSimulation: