Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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) 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(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",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.001226/0.001226, allocations: 92.08 kB / 16.3 MB, free: 5.996 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.001215/0.001215, allocations: 184.4 kB / 17.2 MB, free: 5.914 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.44/1.44, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002584/0.0002585, allocations: 6.344 kB / 300.8 MB, free: 6.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1158, allocations: 50.42 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.008055/0.1239, allocations: 6.617 MB / 357.8 MB, free: 4.988 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005244/0.1292, allocations: 2.573 MB / 360.4 MB, free: 2.41 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001063/0.1303, allocations: 23.94 kB / 360.4 MB, free: 2.387 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001444/0.1317, allocations: 445.8 kB / 360.9 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001334/0.1331, allocations: 465.4 kB / 361.3 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006389/0.1337, allocations: 259.5 kB / 361.6 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001598/0.1354, allocations: 1.048 MB / 362.6 MB, free: 196 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006176/0.136, allocations: 448.4 kB / 363.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004761/0.1365, allocations: 418.2 kB / 363.5 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004677/0.1369, allocations: 473.6 kB / 363.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.307e-05/0.137, allocations: 56 kB / 364 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002405/0.1373, allocations: 99.97 kB / 364.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001376/0.1374, allocations: 183.1 kB / 364.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001833/0.1376, allocations: 257.1 kB / 364.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.1387, allocations: 1.278 MB / 365.8 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1388, allocations: 0 / 365.8 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1388, allocations: 0 / 365.8 MB, free: 12.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.95e-05/0.1388, allocations: 4 kB / 365.8 MB, free: 12.98 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002104/0.1409, allocations: 1.304 MB / 367.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.141, allocations: 8.031 kB / 367.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00017/0.1411, allocations: 152.1 kB / 367.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004566/0.1416, allocations: 174.3 kB / 367.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/0.1427, allocations: 0.7464 MB / 368.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.352e-05/0.1428, allocations: 74 kB / 368.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.1429, allocations: 96 kB / 368.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.1444, allocations: 0.9419 MB / 369.3 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.086e-05/0.1444, allocations: 11.91 kB / 369.3 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.039e-05/0.1445, allocations: 43.94 kB / 369.3 MB, free: 9.297 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/0.1445, allocations: 24 kB / 369.4 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.1457, allocations: 0.6441 MB / 370 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004921/0.1506, allocations: 4.065 MB / 374.1 MB, free: 4.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001/0.1516, allocations: 477.6 kB / 374.5 MB, free: 3.867 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.656e-05/0.1517, allocations: 7.938 kB / 374.6 MB, free: 3.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.337e-05/0.1517, allocations: 30.56 kB / 374.6 MB, free: 3.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 3.737e-06/0.1517, allocations: 4 kB / 374.6 MB, free: 3.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002386/0.1541, allocations: 1.347 MB / 375.9 MB, free: 2.398 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.575e-05/0.1542, allocations: 114.8 kB / 376 MB, free: 2.262 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009489/0.1551, allocations: 0.8234 MB / 376.9 MB, free: 1.414 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.014e-05/0.1552, allocations: 37.64 kB / 376.9 MB, free: 1.371 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003776/0.1556, allocations: 0.5914 MB / 377.5 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.1557, allocations: 149.9 kB / 377.6 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.336e-05/0.1557, allocations: 12 kB / 377.7 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.1558, allocations: 333.9 kB / 378 MB, free: 284 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003033/0.1561, allocations: 173.9 kB / 378.2 MB, free: 112 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005113/0.1567, allocations: 489.7 kB / 378.6 MB, free: 15.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004078/0.1571, allocations: 243.9 kB / 378.9 MB, free: 15.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.1571, allocations: 4 kB / 378.9 MB, free: 15.24 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001139/0.1582, allocations: 0.7586 MB / 379.6 MB, free: 14.47 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001594/0.1598, allocations: 4.081 MB / 383.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.905e-05/0.1599, allocations: 12 kB / 383.7 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001699/0.16, allocations: 44.73 kB / 383.8 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005689/0.1606, allocations: 171.7 kB / 383.9 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009573/0.1616, allocations: 1.295 MB / 385.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005481/0.1622, allocations: 43.89 kB / 385.3 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.527e-05/0.1622, allocations: 32 kB / 385.3 MB, free: 8.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.719e-06/0.1622, allocations: 5.719 kB / 385.3 MB, free: 8.336 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009709/0.1632, allocations: 0.618 MB / 385.9 MB, free: 7.715 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.1632, allocations: 12 kB / 385.9 MB, free: 7.703 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001042/0.1633, allocations: 40.94 kB / 386 MB, free: 7.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005123/0.1639, allocations: 159.8 kB / 386.1 MB, free: 7.504 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009232/0.1648, allocations: 1.292 MB / 387.4 MB, free: 6.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004985/0.1653, allocations: 35.94 kB / 387.5 MB, free: 6.043 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.446e-05/0.1654, allocations: 36 kB / 387.5 MB, free: 6.008 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0004973/0.1659, allocations: 340.8 kB / 387.8 MB, free: 5.664 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001295/0.166, allocations: 99 kB / 387.9 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008159/0.1668, allocations: 439.1 kB / 388.4 MB, free: 5.125 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.1668, allocations: 15.94 kB / 388.4 MB, free: 5.109 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.1669, allocations: 4 kB / 388.4 MB, free: 5.105 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.1669, allocations: 0 / 388.4 MB, free: 5.105 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001991/0.1689, allocations: 1.348 MB / 389.7 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.1689, allocations: 4 kB / 389.7 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003582/0.1692, allocations: 84.11 kB / 389.8 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.987e-05/0.1693, allocations: 24.84 kB / 389.8 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.839e-05/0.1694, allocations: 8 kB / 389.8 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008635/0.1703, allocations: 1.284 MB / 391.1 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.1703, allocations: 7.922 kB / 391.1 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.1714, allocations: 0.8042 MB / 391.9 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00025/0.1716, allocations: 192 kB / 392.1 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.315e-05/0.1717, allocations: 15.95 kB / 392.1 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003462/0.1721, allocations: 23.98 kB / 392.2 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.665e-05/0.1721, allocations: 27.95 kB / 392.2 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.421e-05/0.1722, allocations: 12 kB / 392.2 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006739/0.1729, allocations: 0.5585 MB / 392.8 MB, free: 400 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1729, allocations: 0 / 392.8 MB, free: 400 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.001222/0.1741, allocations: 344 kB / 393.1 MB, free: 56 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.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 (39): * Single equations (assignments): 38 * 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.001788/0.1759, allocations: 1.86 MB / 395 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001659/0.1776, allocations: 0.9817 MB / 395.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.1776, allocations: 0 / 395.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003913/0.178, allocations: 282.5 kB / 396.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001087/0.1791, allocations: 221.7 kB / 396.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01107/0.1902, allocations: 12.34 MB / 408.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007035/0.1909, allocations: 1.056 MB / 409.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006748/0.1916, allocations: 123.2 kB / 409.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000487/0.1921, allocations: 395.3 kB / 410.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of SimCode: time 1.463e-06/0.1921, allocations: 0 / 410.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2358/0.4279, allocations: 17.67 MB / 428 MB, free: 64.21 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001741/0.4282, allocations: 226.7 kB / 428.2 MB, free: 63.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.204/2.632, allocations: 0 / 428.2 MB, free: 63.98 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat