Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002553/0.002553, allocations: 180.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.165/2.165, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.337e-05/3.348e-05, allocations: 0 / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1102, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.497/0.6073, allocations: 116.1 MB / 485.3 MB, free: 9.152 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003623/0.6077, allocations: 85.08 kB / 485.3 MB, free: 9.109 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1815/0.7892, allocations: 42.73 MB / 0.5157 GB, free: 15.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.7893, allocations: 0 / 0.5157 GB, free: 15.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002146/0.7895, allocations: 48.11 kB / 0.5157 GB, free: 15.84 MB / 410.7 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.005824/0.7954, allocations: 1.69 MB / 0.5174 GB, free: 14.1 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.642e-05/0.7954, allocations: 8.031 kB / 0.5174 GB, free: 14.09 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007454/0.7962, allocations: 237 kB / 0.5176 GB, free: 13.85 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001353/0.7976, allocations: 273.2 kB / 0.5179 GB, free: 13.58 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004019/0.8016, allocations: 1.177 MB / 0.519 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000169/0.8019, allocations: 123.3 kB / 0.5192 GB, free: 12.22 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004963/0.8024, allocations: 171.9 kB / 0.5193 GB, free: 12.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004716/0.8071, allocations: 1.496 MB / 0.5208 GB, free: 10.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.669e-05/0.8072, allocations: 7.938 kB / 0.5208 GB, free: 10.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002273/0.8075, allocations: 68 kB / 0.5209 GB, free: 10.42 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.697e-05/0.8075, allocations: 40 kB / 0.5209 GB, free: 10.38 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003497/0.811, allocations: 0.9727 MB / 0.5218 GB, free: 9.406 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01651/0.8276, allocations: 6.763 MB / 0.5284 GB, free: 2.332 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002684/0.8304, allocations: 0.8795 MB / 0.5293 GB, free: 1.391 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007025/0.8311, allocations: 259.2 kB / 0.5296 GB, free: 1.133 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.627e-05/0.8312, allocations: 4.562 kB / 0.5296 GB, free: 1.125 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.878e-05/0.8313, allocations: 43.06 kB / 0.5296 GB, free: 1.074 MB / 410.7 MB Notification: Performance of pre-optimization done (n=61): time 3.486e-06/0.8313, allocations: 0 / 0.5296 GB, free: 1.074 MB / 410.7 MB Notification: Performance of matching and sorting (n=64): time 0.2901/1.121, allocations: 1.539 MB / 0.5311 GB, free: 103.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.407e-05/1.122, allocations: 86.7 kB / 0.5312 GB, free: 103.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002807/1.124, allocations: 1.064 MB / 0.5322 GB, free: 103.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001645/1.125, allocations: 40.8 kB / 0.5323 GB, free: 103.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000821/1.125, allocations: 0.8695 MB / 0.5331 GB, free: 103.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003125/1.126, allocations: 241.3 kB / 0.5333 GB, free: 103.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.922e-05/1.126, allocations: 22.94 kB / 0.5334 GB, free: 103.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001188/1.126, allocations: 354.9 kB / 0.5337 GB, free: 102.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006952/1.127, allocations: 244.4 kB / 0.5339 GB, free: 102.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009113/1.128, allocations: 0.6462 MB / 0.5346 GB, free: 102.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009323/1.129, allocations: 353.2 kB / 0.5349 GB, free: 102.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.063e-05/1.129, allocations: 6 kB / 0.5349 GB, free: 102.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002476/1.131, allocations: 0.9706 MB / 0.5359 GB, free: 102.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00117/1.132, allocations: 5.312 MB / 0.541 GB, free: 96.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.952e-05/1.132, allocations: 16.41 kB / 0.5411 GB, free: 96.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000307/1.133, allocations: 43.14 kB / 0.5411 GB, free: 96.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001948/1.135, allocations: 275.5 kB / 0.5414 GB, free: 96.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00108/1.136, allocations: 1.292 MB / 0.5426 GB, free: 95.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001691/1.137, allocations: 70.72 kB / 0.5427 GB, free: 95.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/1.138, allocations: 53.03 kB / 0.5427 GB, free: 95.47 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/1.138, allocations: 3.219 kB / 0.5427 GB, free: 95.47 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002362/1.14, allocations: 0.8932 MB / 0.5436 GB, free: 95.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.137e-05/1.14, allocations: 17.58 kB / 0.5436 GB, free: 95.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001506/1.14, allocations: 40.52 kB / 0.5437 GB, free: 95.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00168/1.142, allocations: 262.3 kB / 0.5439 GB, free: 95.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009664/1.143, allocations: 1.284 MB / 0.5452 GB, free: 94.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008415/1.144, allocations: 50.5 kB / 0.5452 GB, free: 94.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/1.144, allocations: 50.91 kB / 0.5453 GB, free: 94.18 MB / 410.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 139 * 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.0003787/1.144, allocations: 176.9 kB / 0.5454 GB, free: 94.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004835/1.145, allocations: 139.6 kB / 0.5456 GB, free: 94 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001678/1.146, allocations: 0.5928 MB / 0.5462 GB, free: 93.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/1.146, allocations: 10.16 kB / 0.5462 GB, free: 93.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/1.147, allocations: 0 / 0.5462 GB, free: 93.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/1.147, allocations: 3.984 kB / 0.5462 GB, free: 93.91 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005035/1.152, allocations: 2.015 MB / 0.5481 GB, free: 93.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.116e-06/1.152, allocations: 7.344 kB / 0.5481 GB, free: 93.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001293/1.153, allocations: 143 kB / 0.5483 GB, free: 93.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001506/1.153, allocations: 23.48 kB / 0.5483 GB, free: 93.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.673e-05/1.153, allocations: 18.86 kB / 0.5483 GB, free: 93.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009205/1.154, allocations: 1.277 MB / 0.5496 GB, free: 92.25 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/1.154, allocations: 1.656 kB / 0.5496 GB, free: 92.25 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002409/1.157, allocations: 1.067 MB / 0.5506 GB, free: 91.81 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007199/1.157, allocations: 264.2 kB / 0.5509 GB, free: 91.64 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002372/1.158, allocations: 17.16 kB / 0.5509 GB, free: 91.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/1.159, allocations: 59.81 kB / 0.5509 GB, free: 91.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/1.159, allocations: 51.69 kB / 0.551 GB, free: 91.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.469e-05/1.159, allocations: 19.66 kB / 0.551 GB, free: 91.64 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001934/1.161, allocations: 0.8004 MB / 0.5518 GB, free: 91.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.161, allocations: 0 / 0.5518 GB, free: 91.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00304/1.164, allocations: 0.5496 MB / 0.5523 GB, free: 91.52 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.phi,loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,speedController.integrator.y,preFilter.y,slewRateLimiter.y) * Number of discrete variables: 0 () * Number of discrete 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.003143/1.167, allocations: 2.36 MB / 0.5546 GB, free: 90.09 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003315/1.171, allocations: 1.316 MB / 0.5559 GB, free: 89.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/1.171, allocations: 4.906 kB / 0.5559 GB, free: 89.76 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008249/1.171, allocations: 367.8 kB / 0.5563 GB, free: 89.64 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002452/1.174, allocations: 298.6 kB / 0.5566 GB, free: 89.61 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007533/1.181, allocations: 2.412 MB / 0.5589 GB, free: 88.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/1.183, allocations: 1.267 MB / 0.5601 GB, free: 87.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00134/1.184, allocations: 0.6545 MB / 0.5608 GB, free: 87.96 MB / 410.7 MB Notification: Performance of SimCode: time 1.021e-06/1.184, allocations: 0 / 0.5608 GB, free: 87.96 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.16/4.344, allocations: 33.08 MB / 0.5931 GB, free: 84.44 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat