Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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) 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(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",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.001038/0.001038, allocations: 96.8 kB / 16.93 MB, free: 5.984 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.001029/0.001029, allocations: 180.1 kB / 17.82 MB, free: 5.652 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.552/1.552, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.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.000485/0.0004848, allocations: 16 kB / 280.8 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1047, allocations: 47.58 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01312/0.1179, allocations: 11.84 MB / 340.3 MB, free: 8.102 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00997/0.1279, allocations: 5.194 MB / 345.5 MB, free: 2.895 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003194/0.1311, allocations: 63.69 kB / 345.5 MB, free: 2.832 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00296/0.1341, allocations: 0.8316 MB / 346.4 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003615/0.1377, allocations: 0.8918 MB / 347.2 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002279/0.14, allocations: 0.5695 MB / 347.8 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004014/0.144, allocations: 1.614 MB / 349.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001899/0.146, allocations: 0.8213 MB / 350.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001344/0.1473, allocations: 0.6184 MB / 350.9 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001382/0.1487, allocations: 0.7424 MB / 351.6 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004817/0.1492, allocations: 96 kB / 351.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008541/0.1501, allocations: 132 kB / 351.8 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004475/0.1505, allocations: 298.7 kB / 352.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007806/0.1513, allocations: 396.6 kB / 352.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002413/0.1538, allocations: 2.337 MB / 354.9 MB, free: 9.441 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1538, allocations: 0 / 354.9 MB, free: 9.441 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1538, allocations: 0 / 354.9 MB, free: 9.441 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.39e-05/0.1538, allocations: 0 / 354.9 MB, free: 9.441 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.003491/0.1573, allocations: 1.939 MB / 356.8 MB, free: 7.445 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.1574, allocations: 12.03 kB / 356.8 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003035/0.1577, allocations: 236.5 kB / 357 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007367/0.1584, allocations: 273.3 kB / 357.3 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001836/0.1603, allocations: 1.103 MB / 358.4 MB, free: 5.762 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.1604, allocations: 123.3 kB / 358.5 MB, free: 5.641 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002142/0.1606, allocations: 171.9 kB / 358.7 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002732/0.1634, allocations: 1.59 MB / 360.3 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.287e-05/0.1634, allocations: 4 kB / 360.3 MB, free: 3.816 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/0.1636, allocations: 67.94 kB / 360.4 MB, free: 3.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.071e-05/0.1636, allocations: 40 kB / 360.4 MB, free: 3.711 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002227/0.1658, allocations: 1.121 MB / 361.5 MB, free: 2.586 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0086/0.1745, allocations: 6.682 MB / 368.2 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001784/0.1763, allocations: 0.9911 MB / 369.2 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.085e-05/0.1764, allocations: 12.56 kB / 369.2 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.1764, allocations: 47.09 kB / 369.2 MB, free: 10.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.715e-06/0.1764, allocations: 0 / 369.2 MB, free: 10.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.004098/0.1805, allocations: 2.136 MB / 371.4 MB, free: 8.266 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.729e-05/0.1806, allocations: 85.67 kB / 371.5 MB, free: 8.164 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00169/0.1823, allocations: 1.246 MB / 372.7 MB, free: 6.902 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.551e-05/0.1823, allocations: 37.7 kB / 372.7 MB, free: 6.859 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007165/0.1831, allocations: 0.9036 MB / 373.7 MB, free: 5.945 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002102/0.1833, allocations: 240.5 kB / 373.9 MB, free: 5.707 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.163e-05/0.1833, allocations: 24 kB / 373.9 MB, free: 5.684 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.1835, allocations: 341.9 kB / 374.2 MB, free: 5.344 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006306/0.1841, allocations: 310.5 kB / 374.5 MB, free: 5.043 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009379/0.1851, allocations: 0.7236 MB / 375.3 MB, free: 4.125 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007713/0.1859, allocations: 426.8 kB / 375.7 MB, free: 3.711 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.1859, allocations: 4 kB / 375.7 MB, free: 3.707 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002131/0.188, allocations: 1.184 MB / 376.9 MB, free: 2.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.179/0.3671, allocations: 5.366 MB / 382.2 MB, free: 47.51 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.664e-05/0.3671, allocations: 13.75 kB / 382.3 MB, free: 47.51 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002502/0.3674, allocations: 41 kB / 382.3 MB, free: 47.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/0.3685, allocations: 275.1 kB / 382.6 MB, free: 47.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008869/0.3694, allocations: 1.305 MB / 383.9 MB, free: 46.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.3705, allocations: 69.62 kB / 383.9 MB, free: 46.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.421e-05/0.3706, allocations: 51.91 kB / 384 MB, free: 46.26 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/0.3706, allocations: 7.5 kB / 384 MB, free: 46.26 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001761/0.3724, allocations: 0.9457 MB / 384.9 MB, free: 46.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.825e-05/0.3724, allocations: 13.47 kB / 385 MB, free: 46.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001045/0.3725, allocations: 43.8 kB / 385 MB, free: 46.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008126/0.3733, allocations: 253.5 kB / 385.2 MB, free: 46.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006938/0.3741, allocations: 1.299 MB / 386.5 MB, free: 44.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008504/0.3749, allocations: 56.08 kB / 386.6 MB, free: 44.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.586e-05/0.375, allocations: 49.38 kB / 386.6 MB, free: 44.88 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 138 * 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.0007988/0.3758, allocations: 441.8 kB / 387.1 MB, free: 44.67 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001877/0.376, allocations: 130.7 kB / 387.2 MB, free: 44.67 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00142/0.3774, allocations: 0.7402 MB / 387.9 MB, free: 44.6 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.3774, allocations: 7.031 kB / 388 MB, free: 44.6 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3774, allocations: 3.953 kB / 388 MB, free: 44.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.3775, allocations: 4.844 kB / 388 MB, free: 44.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003424/0.3809, allocations: 2.162 MB / 390.1 MB, free: 43.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.3809, allocations: 3.906 kB / 390.1 MB, free: 43.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006011/0.3815, allocations: 148.6 kB / 390.3 MB, free: 43.74 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.476e-05/0.3816, allocations: 24.7 kB / 390.3 MB, free: 43.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.952e-05/0.3817, allocations: 14.5 kB / 390.3 MB, free: 43.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006717/0.3823, allocations: 1.287 MB / 391.6 MB, free: 42.4 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.3824, allocations: 3 kB / 391.6 MB, free: 42.4 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001955/0.3843, allocations: 1.258 MB / 392.9 MB, free: 41.76 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000404/0.3847, allocations: 270.7 kB / 393.1 MB, free: 41.61 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/0.3849, allocations: 21.3 kB / 393.1 MB, free: 41.6 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005932/0.3855, allocations: 55.42 kB / 393.2 MB, free: 41.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.3856, allocations: 52.34 kB / 393.2 MB, free: 41.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.624e-05/0.3856, allocations: 19.78 kB / 393.3 MB, free: 41.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001237/0.3869, allocations: 0.8297 MB / 394.1 MB, free: 41.22 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3869, allocations: 0 / 394.1 MB, free: 41.22 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001809/0.3887, allocations: 0.4985 MB / 394.6 MB, free: 41.18 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.w,dcpm.inertiaRotor.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y,preFilter.y,slewRateLimiter.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 (63): * Single equations (assignments): 62 * 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.002641/0.3914, allocations: 2.303 MB / 396.9 MB, free: 39.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002864/0.3942, allocations: 1.485 MB / 398.4 MB, free: 38.88 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.3943, allocations: 0 / 398.4 MB, free: 38.88 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007477/0.395, allocations: 441.7 kB / 398.8 MB, free: 38.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001638/0.3967, allocations: 304.6 kB / 399.1 MB, free: 38.58 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01668/0.4134, allocations: 17.74 MB / 416.9 MB, free: 24.22 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007645/0.4142, allocations: 1.275 MB / 418.1 MB, free: 23.11 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008619/0.415, allocations: 174.4 kB / 418.3 MB, free: 22.94 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006397/0.4157, allocations: 0.6438 MB / 418.9 MB, free: 22.29 MB / 318.1 MB Notification: Performance of SimCode: time 1.473e-06/0.4157, allocations: 4 kB / 418.9 MB, free: 22.29 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04244/0.4582, allocations: 26.28 MB / 445.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002372/0.4585, allocations: 241.2 kB / 445.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.225/2.684, allocations: 0 / 445.5 MB, free: 11.73 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat