Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001032/0.001033, allocations: 97.23 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 192.2 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2126/0.2126, allocations: 45.9 MB / 344.1 MB, free: 12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002935/0.0002936, allocations: 8 kB / 418.2 MB, free: 20.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1369, allocations: 63.46 MB / 481.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.005291/0.1423, allocations: 3.917 MB / 485.6 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00368/0.146, allocations: 1.532 MB / 487.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005807/0.1467, allocations: 19.88 kB / 487.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007059/0.1474, allocations: 234.5 kB / 487.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002987/0.1477, allocations: 127 kB / 487.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004556/0.1481, allocations: 175.8 kB / 487.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007324/0.1489, allocations: 0.7368 MB / 488.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004059/0.1493, allocations: 275.2 kB / 488.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003241/0.1496, allocations: 214.9 kB / 488.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003195/0.15, allocations: 266.5 kB / 489.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.937e-05/0.1501, allocations: 36 kB / 489.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.837e-05/0.1501, allocations: 32 kB / 489.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.964e-05/0.1502, allocations: 99.48 kB / 489.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001245/0.1504, allocations: 149.3 kB / 489.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000631/0.151, allocations: 0.6936 MB / 490.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.151, allocations: 0 / 490.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.151, allocations: 4 kB / 490.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.198e-05/0.151, allocations: 0 / 490.1 MB, free: 12.71 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001448/0.1525, allocations: 0.9077 MB / 491 MB, free: 11.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.1525, allocations: 12.03 kB / 491 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001101/0.1527, allocations: 106.5 kB / 491.1 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.1528, allocations: 79.06 kB / 491.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005871/0.1534, allocations: 484.4 kB / 491.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.692e-05/0.1534, allocations: 49.31 kB / 491.7 MB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.537e-05/0.1535, allocations: 60 kB / 491.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009751/0.1545, allocations: 0.6067 MB / 492.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.1545, allocations: 0 / 492.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.482e-05/0.1546, allocations: 20 kB / 492.4 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.1546, allocations: 23.88 kB / 492.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007953/0.1554, allocations: 445 kB / 492.9 MB, free: 9.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002816/0.1582, allocations: 2.191 MB / 495.1 MB, free: 7.535 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009899/0.1592, allocations: 0.6216 MB / 495.7 MB, free: 6.871 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002984/0.1595, allocations: 180.1 kB / 495.9 MB, free: 6.695 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.96e-05/0.1596, allocations: 8 kB / 495.9 MB, free: 6.688 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.1596, allocations: 30.56 kB / 495.9 MB, free: 6.648 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.144e-06/0.1596, allocations: 0 / 495.9 MB, free: 6.648 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.001994/0.1616, allocations: 1.192 MB / 497.1 MB, free: 5.379 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.869e-05/0.1616, allocations: 55.41 kB / 497.1 MB, free: 5.312 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005486/0.1622, allocations: 0.5183 MB / 497.7 MB, free: 4.785 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.535e-05/0.1622, allocations: 33.7 kB / 497.7 MB, free: 4.746 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001959/0.1624, allocations: 344.1 kB / 498 MB, free: 4.402 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.26e-05/0.1625, allocations: 118.2 kB / 498.2 MB, free: 4.285 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.843e-05/0.1625, allocations: 15.94 kB / 498.2 MB, free: 4.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1627, allocations: 362.8 kB / 498.5 MB, free: 3.906 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002826/0.163, allocations: 144.8 kB / 498.7 MB, free: 3.766 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003206/0.1633, allocations: 228.9 kB / 498.9 MB, free: 3.512 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003163/0.1636, allocations: 176.7 kB / 499.1 MB, free: 3.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1636, allocations: 4 kB / 499.1 MB, free: 3.336 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008026/0.1644, allocations: 0.4895 MB / 499.6 MB, free: 2.836 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.096e-05/0.1645, allocations: 152.9 kB / 499.7 MB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.1645, allocations: 4 kB / 499.7 MB, free: 2.648 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001272/0.1647, allocations: 32.78 kB / 499.7 MB, free: 2.613 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004093/0.1651, allocations: 103.9 kB / 499.8 MB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008806/0.166, allocations: 1.28 MB / 0.4894 GB, free: 1.098 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002528/0.1662, allocations: 31.98 kB / 0.4894 GB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.715e-05/0.1663, allocations: 20.09 kB / 0.4894 GB, free: 1.047 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.127e-06/0.1663, allocations: 14.14 kB / 0.4894 GB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005993/0.1669, allocations: 368.4 kB / 0.4898 GB, free: 0.6719 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/0.1669, allocations: 0 / 0.4898 GB, free: 0.6719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.166e-05/0.167, allocations: 20.84 kB / 0.4898 GB, free: 0.6484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003329/0.1673, allocations: 95.89 kB / 0.4899 GB, free: 0.5547 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007792/0.1681, allocations: 1.276 MB / 0.4911 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001927/0.1683, allocations: 19.94 kB / 0.4912 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.197e-05/0.1684, allocations: 15.98 kB / 0.4912 GB, free: 15.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (speedController.integrator.local_reset,currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002639/0.1686, allocations: 273.1 kB / 0.4914 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.57e-05/0.1687, allocations: 55.34 kB / 0.4915 GB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.1688, allocations: 61.22 kB / 0.4916 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1688, allocations: 4 kB / 0.4916 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1688, allocations: 0 / 0.4916 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.1688, allocations: 0 / 0.4916 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/0.1704, allocations: 1.096 MB / 0.4926 GB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1704, allocations: 0 / 0.4926 GB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003341/0.1707, allocations: 79.89 kB / 0.4927 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.908e-05/0.1708, allocations: 28.91 kB / 0.4927 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/0.1709, allocations: 4 kB / 0.4927 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007599/0.1716, allocations: 1.288 MB / 0.494 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.1716, allocations: 4.031 kB / 0.494 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009735/0.1726, allocations: 0.6505 MB / 0.4946 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.1727, allocations: 136.4 kB / 0.4948 GB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.268e-05/0.1728, allocations: 11.95 kB / 0.4948 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002628/0.1731, allocations: 31.98 kB / 0.4948 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.801e-05/0.1731, allocations: 23.97 kB / 0.4948 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.862e-05/0.1731, allocations: 8 kB / 0.4948 GB, free: 11.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003843/0.1735, allocations: 362.8 kB / 0.4952 GB, free: 10.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1735, allocations: 0 / 0.4952 GB, free: 10.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005937/0.1741, allocations: 184 kB / 0.4954 GB, free: 10.58 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (dcpm.inductor.i,dcpm.inertia.w,inertiaLoad.phi,deadTime.y,currentController.integrator.y,preFilter.y,speedController.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 31 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001203/0.1754, allocations: 1.203 MB / 0.4965 GB, free: 9.344 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001188/0.1766, allocations: 0.759 MB / 0.4973 GB, free: 8.559 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.1766, allocations: 4 kB / 0.4973 GB, free: 8.555 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004063/0.177, allocations: 291.3 kB / 0.4976 GB, free: 8.258 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006302/0.1776, allocations: 101.2 kB / 0.4976 GB, free: 8.164 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005026/0.1827, allocations: 3.613 MB / 0.5012 GB, free: 4.453 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003941/0.1831, allocations: 0.8863 MB / 0.502 GB, free: 3.535 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002401/0.1833, allocations: 64.69 kB / 0.5021 GB, free: 3.473 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002812/0.1836, allocations: 227.4 kB / 0.5023 GB, free: 3.25 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1836, allocations: 0 / 0.5023 GB, free: 3.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2552/0.4389, allocations: 10.3 MB / 0.5124 GB, free: 38.46 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000276/0.4392, allocations: 210.2 kB / 0.5126 GB, free: 38.22 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.058/2.497, allocations: 1.75 kB / 0.5126 GB, free: 38.22 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)