Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",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.001064/0.001064, allocations: 175.5 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.278/1.278, allocations: 221.3 MB / 235.5 MB, free: 2.969 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.0008061/0.0008061, allocations: 86.3 kB / 286.5 MB, free: 244 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.727e-05/2.728e-05, allocations: 0 / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08643/0.08647, allocations: 50.41 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2885/0.375, allocations: 95.68 MB / 490 MB, free: 7.793 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.3753, allocations: 83.94 kB / 490.1 MB, free: 7.711 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1091/0.4844, allocations: 40.78 MB / 0.5184 GB, free: 14.64 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4845, allocations: 0 / 0.5184 GB, free: 14.64 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001376/0.4846, allocations: 36 kB / 0.5185 GB, free: 14.6 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003646/0.4883, allocations: 1.562 MB / 0.52 GB, free: 12.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.053e-05/0.4884, allocations: 8.031 kB / 0.52 GB, free: 12.97 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004753/0.4889, allocations: 215.9 kB / 0.5202 GB, free: 12.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009879/0.4899, allocations: 257.6 kB / 0.5205 GB, free: 12.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002207/0.4921, allocations: 1.094 MB / 0.5215 GB, free: 11.36 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-05/0.4922, allocations: 115.1 kB / 0.5216 GB, free: 11.24 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000263/0.4925, allocations: 159.9 kB / 0.5218 GB, free: 11.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002648/0.4951, allocations: 1.429 MB / 0.5232 GB, free: 9.582 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.216e-05/0.4952, allocations: 19.78 kB / 0.5232 GB, free: 9.562 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000129/0.4953, allocations: 64 kB / 0.5233 GB, free: 9.5 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.342e-05/0.4954, allocations: 40 kB / 0.5233 GB, free: 9.461 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001793/0.4972, allocations: 0.9164 MB / 0.5242 GB, free: 8.539 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008604/0.5058, allocations: 6.648 MB / 0.5307 GB, free: 1.535 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006488/0.5065, allocations: 377 kB / 0.5311 GB, free: 1.156 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003567/0.5069, allocations: 202.9 kB / 0.5312 GB, free: 0.957 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.544e-05/0.5069, allocations: 4.438 kB / 0.5312 GB, free: 0.9531 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004788/0.5074, allocations: 257.7 kB / 0.5315 GB, free: 0.6758 MB / 410.7 MB Notification: Performance of pre-optimization done (n=50): time 3.076e-06/0.5074, allocations: 0 / 0.5315 GB, free: 0.6758 MB / 410.7 MB Notification: Performance of matching and sorting (n=56): time 0.003211/0.5106, allocations: 1.619 MB / 0.5331 GB, free: 15 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.5108, allocations: 188.5 kB / 0.5333 GB, free: 14.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001785/0.5126, allocations: 1.061 MB / 0.5343 GB, free: 13.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.561e-05/0.5126, allocations: 41.73 kB / 0.5343 GB, free: 13.65 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007294/0.5134, allocations: 0.8711 MB / 0.5352 GB, free: 12.77 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.5135, allocations: 205.2 kB / 0.5354 GB, free: 12.56 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.342e-05/0.5136, allocations: 24 kB / 0.5354 GB, free: 12.54 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.5137, allocations: 345.9 kB / 0.5357 GB, free: 12.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004333/0.5142, allocations: 214.6 kB / 0.5359 GB, free: 11.98 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008162/0.515, allocations: 0.784 MB / 0.5367 GB, free: 10.92 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006621/0.5157, allocations: 384.6 kB / 0.5371 GB, free: 10.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/0.5157, allocations: 4 kB / 0.5371 GB, free: 10.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001958/0.5177, allocations: 1.138 MB / 0.5382 GB, free: 9.375 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.729e-05/0.5177, allocations: 41.7 kB / 0.5382 GB, free: 9.328 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.461e-05/0.5178, allocations: 20 kB / 0.5382 GB, free: 9.309 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002292/0.518, allocations: 73.69 kB / 0.5383 GB, free: 9.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007972/0.5188, allocations: 267.5 kB / 0.5386 GB, free: 8.969 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001847/0.5207, allocations: 2.58 MB / 0.5411 GB, free: 6.121 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008972/0.5216, allocations: 76.03 kB / 0.5412 GB, free: 6.047 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.961e-05/0.5217, allocations: 60 kB / 0.5412 GB, free: 5.988 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001794/0.5219, allocations: 188.4 kB / 0.5414 GB, free: 5.797 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.522, allocations: 134.3 kB / 0.5415 GB, free: 5.664 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008392/0.5229, allocations: 0.5135 MB / 0.542 GB, free: 5.129 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.5229, allocations: 8 kB / 0.542 GB, free: 5.121 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.5229, allocations: 0 / 0.542 GB, free: 5.121 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.5229, allocations: 3.984 kB / 0.542 GB, free: 5.117 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002568/0.5255, allocations: 1.904 MB / 0.5439 GB, free: 3.094 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.5255, allocations: 4 kB / 0.5439 GB, free: 3.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004251/0.5259, allocations: 103.9 kB / 0.544 GB, free: 2.988 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001298/0.5261, allocations: 50.11 kB / 0.544 GB, free: 2.934 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.246e-05/0.5261, allocations: 16 kB / 0.5441 GB, free: 2.918 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001498/0.5276, allocations: 2.544 MB / 0.5465 GB, free: 112 kB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.5276, allocations: 12.19 kB / 0.5466 GB, free: 100 kB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.213/0.7407, allocations: 1.063 MB / 0.5476 GB, free: 108.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004744/0.7412, allocations: 250.2 kB / 0.5478 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.7414, allocations: 21.2 kB / 0.5479 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005362/0.7419, allocations: 36.8 kB / 0.5479 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.742, allocations: 56.3 kB / 0.5479 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.211e-05/0.7421, allocations: 19.09 kB / 0.548 GB, free: 108.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001135/0.7432, allocations: 0.7896 MB / 0.5487 GB, free: 108.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.7432, allocations: 0 / 0.5487 GB, free: 108.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001162/0.7444, allocations: 340.7 kB / 0.5491 GB, free: 108.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001633/0.746, allocations: 2.821 MB / 0.5518 GB, free: 106.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.7472, allocations: 0.8865 MB / 0.5527 GB, free: 106 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.7473, allocations: 2.906 kB / 0.5527 GB, free: 106 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005054/0.7478, allocations: 453.6 kB / 0.5531 GB, free: 105.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.749, allocations: 315.8 kB / 0.5534 GB, free: 105.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003873/0.7529, allocations: 2.117 MB / 0.5555 GB, free: 105.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007582/0.7537, allocations: 1.213 MB / 0.5567 GB, free: 104.4 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008309/0.7546, allocations: 173.1 kB / 0.5568 GB, free: 104.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007028/0.7553, allocations: 0.5842 MB / 0.5574 GB, free: 104.3 MB / 426.7 MB Notification: Performance of SimCode: time 8.22e-07/0.7553, allocations: 0 / 0.5574 GB, free: 104.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05183/0.8071, allocations: 28.44 MB / 0.5852 GB, free: 102.7 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001453/0.8073, allocations: 203.5 kB / 0.5854 GB, free: 102.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.885/3.693, allocations: 0 / 0.5854 GB, free: 102.4 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat does not exist to compare? outputFormat=mat