Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 175.3 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 221.3 MB / 235.5 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008828/0.0008829, allocations: 89.92 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.248e-05/3.25e-05, allocations: 0 / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1099, allocations: 50.42 MB / 394.4 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3816/0.4915, allocations: 116.2 MB / 0.4985 GB, free: 3.234 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.4918, allocations: 83.95 kB / 0.4986 GB, free: 3.152 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1058/0.5976, allocations: 39.63 MB / 0.5373 GB, free: 11.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5977, allocations: 0 / 0.5373 GB, free: 11.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001347/0.5978, allocations: 40 kB / 0.5374 GB, free: 11.28 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004207/0.602, allocations: 1.523 MB / 0.5389 GB, free: 9.707 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.6021, allocations: 15.97 kB / 0.5389 GB, free: 9.691 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000328/0.6025, allocations: 215.5 kB / 0.5391 GB, free: 9.469 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009003/0.6034, allocations: 249.5 kB / 0.5393 GB, free: 9.223 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002252/0.6056, allocations: 1.055 MB / 0.5403 GB, free: 8.125 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.582e-05/0.6057, allocations: 115 kB / 0.5405 GB, free: 8.012 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002254/0.606, allocations: 155.9 kB / 0.5406 GB, free: 7.859 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002729/0.6087, allocations: 1.357 MB / 0.5419 GB, free: 6.445 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.877e-05/0.6088, allocations: 4 kB / 0.5419 GB, free: 6.441 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001337/0.6089, allocations: 63.94 kB / 0.542 GB, free: 6.379 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.321e-05/0.609, allocations: 40 kB / 0.542 GB, free: 6.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001889/0.6109, allocations: 0.8779 MB / 0.5429 GB, free: 5.457 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2445/0.8554, allocations: 6.219 MB / 0.549 GB, free: 105.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.8566, allocations: 0.6258 MB / 0.5496 GB, free: 105.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003157/0.857, allocations: 213.9 kB / 0.5498 GB, free: 105.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.693e-05/0.857, allocations: 7.906 kB / 0.5498 GB, free: 105.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.8571, allocations: 40.05 kB / 0.5498 GB, free: 105.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=51): time 2.835e-06/0.8571, allocations: 0 / 0.5498 GB, free: 105.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.002522/0.8596, allocations: 1.355 MB / 0.5511 GB, free: 105.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.8597, allocations: 85.64 kB / 0.5512 GB, free: 105 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001454/0.8611, allocations: 0.9426 MB / 0.5521 GB, free: 104.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.94e-05/0.8612, allocations: 34.67 kB / 0.5522 GB, free: 104.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005119/0.8617, allocations: 0.8099 MB / 0.553 GB, free: 104.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.8618, allocations: 204.1 kB / 0.5532 GB, free: 104.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.191e-05/0.8619, allocations: 20.56 kB / 0.5532 GB, free: 104.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.834e-05/0.862, allocations: 345.6 kB / 0.5535 GB, free: 104.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003317/0.8623, allocations: 205.5 kB / 0.5537 GB, free: 104.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004707/0.8628, allocations: 0.591 MB / 0.5543 GB, free: 103.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004752/0.8633, allocations: 314.3 kB / 0.5546 GB, free: 103.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.8633, allocations: 6.5 kB / 0.5546 GB, free: 103.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001429/0.8647, allocations: 0.9398 MB / 0.5555 GB, free: 103.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009959/0.8657, allocations: 5.143 MB / 0.5605 GB, free: 98.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.594e-05/0.8657, allocations: 13.5 kB / 0.5605 GB, free: 98.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001939/0.8659, allocations: 39 kB / 0.5606 GB, free: 98.19 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000819/0.8668, allocations: 233 kB / 0.5608 GB, free: 98.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007752/0.8676, allocations: 1.289 MB / 0.5621 GB, free: 96.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/0.8686, allocations: 59.33 kB / 0.5621 GB, free: 96.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.803e-05/0.8687, allocations: 46.61 kB / 0.5622 GB, free: 96.94 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/0.8687, allocations: 2.531 kB / 0.5622 GB, free: 96.94 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001378/0.8701, allocations: 0.7957 MB / 0.5629 GB, free: 96.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.857e-05/0.8701, allocations: 13.06 kB / 0.563 GB, free: 96.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001091/0.8702, allocations: 42.42 kB / 0.563 GB, free: 96.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007108/0.871, allocations: 222.9 kB / 0.5632 GB, free: 96.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006687/0.8716, allocations: 1.291 MB / 0.5645 GB, free: 95.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007181/0.8724, allocations: 40.75 kB / 0.5645 GB, free: 95.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.231e-05/0.8724, allocations: 44.38 kB / 0.5646 GB, free: 95.65 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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.0001863/0.8726, allocations: 168.2 kB / 0.5647 GB, free: 95.55 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000197/0.8728, allocations: 113.2 kB / 0.5648 GB, free: 95.49 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.8739, allocations: 0.5136 MB / 0.5653 GB, free: 95.42 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.577e-06/0.8739, allocations: 5.031 kB / 0.5653 GB, free: 95.42 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.8739, allocations: 0.7031 kB / 0.5653 GB, free: 95.42 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.8739, allocations: 6.484 kB / 0.5653 GB, free: 95.42 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003219/0.8771, allocations: 1.78 MB / 0.5671 GB, free: 95.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.8772, allocations: 7.766 kB / 0.5671 GB, free: 95.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005195/0.8777, allocations: 111.5 kB / 0.5672 GB, free: 95.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001016/0.8778, allocations: 29.75 kB / 0.5672 GB, free: 95.02 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.604e-05/0.8778, allocations: 17.58 kB / 0.5672 GB, free: 95.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006491/0.8785, allocations: 1.268 MB / 0.5685 GB, free: 93.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.8785, allocations: 2.844 kB / 0.5685 GB, free: 93.75 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/0.8797, allocations: 0.922 MB / 0.5694 GB, free: 93.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000407/0.8801, allocations: 238.5 kB / 0.5696 GB, free: 93.21 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.8802, allocations: 19.02 kB / 0.5696 GB, free: 93.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004957/0.8808, allocations: 38 kB / 0.5697 GB, free: 93.21 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.588e-05/0.8809, allocations: 40.59 kB / 0.5697 GB, free: 93.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.598e-05/0.8809, allocations: 18.22 kB / 0.5697 GB, free: 93.21 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001165/0.8821, allocations: 0.7035 MB / 0.5704 GB, free: 93.09 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.8821, allocations: 0 / 0.5704 GB, free: 93.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001984/0.8841, allocations: 0.5076 MB / 0.5709 GB, free: 93.09 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (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,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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.001997/0.8861, allocations: 2.234 MB / 0.5731 GB, free: 91.66 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002016/0.8881, allocations: 1.214 MB / 0.5743 GB, free: 91.35 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.8881, allocations: 1.219 kB / 0.5743 GB, free: 91.35 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004245/0.8886, allocations: 326.1 kB / 0.5746 GB, free: 91.21 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.8899, allocations: 264.3 kB / 0.5748 GB, free: 91.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00456/0.8944, allocations: 2.093 MB / 0.5769 GB, free: 90.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007894/0.8952, allocations: 1.206 MB / 0.578 GB, free: 89.67 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00109/0.8963, allocations: 206.2 kB / 0.5782 GB, free: 89.62 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005767/0.8969, allocations: 0.541 MB / 0.5788 GB, free: 89.62 MB / 426.7 MB Notification: Performance of SimCode: time 1.102e-06/0.8969, allocations: 0 / 0.5788 GB, free: 89.62 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04686/0.9438, allocations: 28.46 MB / 0.6066 GB, free: 87.83 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001483/0.944, allocations: 212.8 kB / 0.6068 GB, free: 87.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.696/3.64, allocations: 6.344 kB / 0.6068 GB, free: 87.6 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat