Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 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.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_4_0_0_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.001041/0.001041, allocations: 88.16 kB / 16.31 MB, free: 5.547 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.001224/0.001224, allocations: 181.5 kB / 17.21 MB, free: 5.465 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.388/1.388, allocations: 223.3 MB / 241.2 MB, free: 14.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003467/0.0003468, allocations: 5.375 kB / 300.9 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1306, allocations: 50.42 MB / 351.4 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.02046/0.1511, allocations: 12.76 MB / 364.1 MB, free: 6.863 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01239/0.1635, allocations: 4.977 MB / 369.1 MB, free: 1.875 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003677/0.1673, allocations: 59.75 kB / 369.1 MB, free: 1.816 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003293/0.1706, allocations: 0.7456 MB / 369.9 MB, free: 1.066 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002522/0.1732, allocations: 468.5 kB / 370.4 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001398/0.1746, allocations: 375.5 kB / 370.7 MB, free: 244 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2552/0.4297, allocations: 2.124 MB / 372.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001679/0.4315, allocations: 0.8239 MB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001506/0.433, allocations: 0.6394 MB / 374.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009333/0.4339, allocations: 0.7377 MB / 375 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001776/0.4341, allocations: 99.53 kB / 375.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003841/0.4345, allocations: 135 kB / 375.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002557/0.4348, allocations: 302.8 kB / 375.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004121/0.4352, allocations: 390.3 kB / 375.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002816/0.438, allocations: 2.36 MB / 378.3 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.156e-06/0.438, allocations: 0 / 378.3 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.105e-06/0.4381, allocations: 0.6562 kB / 378.3 MB, free: 9.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.368e-05/0.4381, allocations: 0.8125 kB / 378.3 MB, free: 9.93 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.004072/0.4422, allocations: 1.943 MB / 380.3 MB, free: 8.914 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.285e-05/0.4423, allocations: 14.44 kB / 380.3 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003757/0.4427, allocations: 233.9 kB / 380.5 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000839/0.4435, allocations: 263 kB / 380.8 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001991/0.4455, allocations: 1.08 MB / 381.8 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001146/0.4456, allocations: 124.3 kB / 382 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002498/0.4459, allocations: 178.3 kB / 382.1 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003141/0.4491, allocations: 1.6 MB / 383.7 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.352e-05/0.4491, allocations: 2.094 kB / 383.7 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001374/0.4493, allocations: 67.59 kB / 383.8 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.906e-05/0.4493, allocations: 40.66 kB / 383.8 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002338/0.4517, allocations: 1.114 MB / 384.9 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009316/0.461, allocations: 6.718 MB / 391.7 MB, free: 4.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00174/0.4628, allocations: 1.001 MB / 392.7 MB, free: 3.887 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005585/0.4634, allocations: 323.3 kB / 393 MB, free: 3.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.732e-05/0.4634, allocations: 17.55 kB / 393 MB, free: 3.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.4634, allocations: 40.12 kB / 393 MB, free: 3.793 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 2.244e-06/0.4634, allocations: 0 / 393 MB, free: 3.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.003915/0.4674, allocations: 2.119 MB / 395.2 MB, free: 2.914 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.4674, allocations: 83.17 kB / 395.2 MB, free: 2.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001742/0.4692, allocations: 1.257 MB / 396.5 MB, free: 2.434 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.964e-05/0.4692, allocations: 41.83 kB / 396.5 MB, free: 2.391 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004601/0.4697, allocations: 0.8923 MB / 397.4 MB, free: 1.602 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.4698, allocations: 240.5 kB / 397.7 MB, free: 1.398 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.649e-05/0.4699, allocations: 20.12 kB / 397.7 MB, free: 1.383 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.147e-05/0.47, allocations: 351.5 kB / 398 MB, free: 1.043 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005497/0.4705, allocations: 312.2 kB / 398.3 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008187/0.4713, allocations: 0.7221 MB / 399.1 MB, free: 208 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006879/0.472, allocations: 415.6 kB / 399.5 MB, free: 8 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.095e-06/0.4721, allocations: 7.031 kB / 399.5 MB, free: 4 kB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001956/0.474, allocations: 1.193 MB / 400.7 MB, free: 15.41 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003367/0.4744, allocations: 0.4952 MB / 401.2 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/0.4744, allocations: 13.09 kB / 401.2 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001576/0.4746, allocations: 40.31 kB / 401.2 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008354/0.4754, allocations: 269.8 kB / 401.5 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009774/0.4764, allocations: 1.302 MB / 402.8 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008018/0.4772, allocations: 73.5 kB / 402.8 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.718e-05/0.4773, allocations: 58.67 kB / 402.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.881e-06/0.4773, allocations: 3.219 kB / 402.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001414/0.4787, allocations: 0.944 MB / 403.9 MB, free: 12.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.4787, allocations: 18.19 kB / 403.9 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.56e-05/0.4788, allocations: 40.53 kB / 403.9 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007264/0.4796, allocations: 253.7 kB / 404.2 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008677/0.4804, allocations: 1.295 MB / 405.5 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006328/0.4811, allocations: 47.98 kB / 405.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-05/0.4812, allocations: 56.16 kB / 405.6 MB, free: 11.19 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.0007536/0.4819, allocations: 436.6 kB / 406 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001797/0.4821, allocations: 134.3 kB / 406.1 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001371/0.4835, allocations: 0.7283 MB / 406.8 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.4835, allocations: 11.89 kB / 406.9 MB, free: 9.863 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.351e-06/0.4835, allocations: 4 kB / 406.9 MB, free: 9.859 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.4835, allocations: 6.391 kB / 406.9 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003306/0.4868, allocations: 2.184 MB / 409 MB, free: 7.598 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.4869, allocations: 3.984 kB / 409 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005951/0.4875, allocations: 135.9 kB / 409.2 MB, free: 7.461 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.509e-05/0.4876, allocations: 32.78 kB / 409.2 MB, free: 7.426 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.61e-05/0.4876, allocations: 16.09 kB / 409.2 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008442/0.4885, allocations: 1.276 MB / 410.5 MB, free: 6.004 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.4885, allocations: 4 kB / 410.5 MB, free: 6 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001826/0.4903, allocations: 1.163 MB / 411.7 MB, free: 4.797 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000382/0.4907, allocations: 267.4 kB / 411.9 MB, free: 4.516 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001355/0.4908, allocations: 20 kB / 412 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005511/0.4914, allocations: 63.95 kB / 412 MB, free: 4.434 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.747e-05/0.4915, allocations: 40.5 kB / 412.1 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.771e-05/0.4915, allocations: 24 kB / 412.1 MB, free: 4.371 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001179/0.4927, allocations: 0.8305 MB / 412.9 MB, free: 3.539 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4927, allocations: 4 kB / 412.9 MB, free: 3.535 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001593/0.4943, allocations: 0.4961 MB / 413.4 MB, free: 3.039 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.002261/0.4966, allocations: 1.754 MB / 415.2 MB, free: 1.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002452/0.4991, allocations: 1.482 MB / 416.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.4991, allocations: 4.125 kB / 416.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006836/0.4998, allocations: 442.1 kB / 417.1 MB, free: 15.28 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001444/0.5012, allocations: 306.5 kB / 417.4 MB, free: 14.99 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01504/0.5163, allocations: 8.751 MB / 426.1 MB, free: 5.719 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009057/0.5172, allocations: 1.241 MB / 427.4 MB, free: 4.449 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007972/0.518, allocations: 174.5 kB / 427.5 MB, free: 4.273 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008034/0.5189, allocations: 0.6399 MB / 428.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.5189, allocations: 0 / 428.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04812/0.567, allocations: 26.38 MB / 454.6 MB, free: 9.648 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/0.5672, allocations: 240 kB / 454.8 MB, free: 9.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.558/3.126, allocations: 2.656 kB / 454.8 MB, free: 9.41 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat