Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",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.001018/0.001018, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.563/1.563, allocations: 221.5 MB / 230.3 MB, free: 7.59 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.0008854/0.0008853, allocations: 97.22 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.764e-05/1.766e-05, allocations: 3.938 kB / 337.1 MB, free: 9.945 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1032, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3942/0.4974, allocations: 107 MB / 494.6 MB, free: 3.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002363/0.4976, allocations: 87.95 kB / 494.7 MB, free: 3.574 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1324/0.63, allocations: 49.85 MB / 0.5318 GB, free: 1.371 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.6301, allocations: 4 kB / 0.5318 GB, free: 1.367 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001721/0.6303, allocations: 67.94 kB / 0.5318 GB, free: 1.301 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.005167/0.6354, allocations: 2.51 MB / 0.5343 GB, free: 14.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.6355, allocations: 12.03 kB / 0.5343 GB, free: 14.72 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009378/0.6365, allocations: 336.3 kB / 0.5346 GB, free: 14.39 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003229/0.6397, allocations: 1.771 MB / 0.5363 GB, free: 12.56 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.678e-05/0.6398, allocations: 79.98 kB / 0.5364 GB, free: 12.48 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002961/0.6401, allocations: 140.6 kB / 0.5365 GB, free: 12.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004199/0.6443, allocations: 2.317 MB / 0.5388 GB, free: 10.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004428/0.6488, allocations: 2.699 MB / 0.5414 GB, free: 7.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.901e-05/0.6488, allocations: 7.906 kB / 0.5415 GB, free: 7.172 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001779/0.649, allocations: 4 kB / 0.5415 GB, free: 7.168 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001156/0.6491, allocations: 104.6 kB / 0.5416 GB, free: 7.062 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2676/0.9168, allocations: 9.284 MB / 0.5506 GB, free: 102.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002723/0.9196, allocations: 2.132 MB / 0.5527 GB, free: 101.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00146/0.9211, allocations: 0.8891 MB / 0.5536 GB, free: 101.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003812/0.9215, allocations: 224.4 kB / 0.5538 GB, free: 101.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.512e-05/0.9215, allocations: 50.69 kB / 0.5538 GB, free: 101.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=121): time 3.617e-06/0.9215, allocations: 0.9062 kB / 0.5538 GB, free: 101.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=143): time 0.01122/0.9328, allocations: 5.27 MB / 0.559 GB, free: 100.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.014e-05/0.9328, allocations: 66.25 kB / 0.559 GB, free: 100.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002538/0.9354, allocations: 1.272 MB / 0.5603 GB, free: 100.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001333/0.9355, allocations: 25.7 kB / 0.5603 GB, free: 100.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008545/0.9364, allocations: 1.143 MB / 0.5614 GB, free: 100.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004357/0.9368, allocations: 475.1 kB / 0.5619 GB, free: 99.97 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.966e-05/0.9369, allocations: 0 / 0.5619 GB, free: 99.97 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.9371, allocations: 372.6 kB / 0.5622 GB, free: 99.66 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001225/0.9383, allocations: 0.7703 MB / 0.563 GB, free: 99.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001422/0.9397, allocations: 1.136 MB / 0.5641 GB, free: 99.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.9412, allocations: 0.9483 MB / 0.565 GB, free: 99.24 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.127e-05/0.9413, allocations: 5.406 kB / 0.565 GB, free: 99.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00519/0.9465, allocations: 2.57 MB / 0.5675 GB, free: 99.05 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.517e-05/0.9465, allocations: 9.469 kB / 0.5675 GB, free: 99.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.37e-05/0.9466, allocations: 11.2 kB / 0.5676 GB, free: 99.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001821/0.9484, allocations: 0.5785 MB / 0.5681 GB, free: 99.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/0.95, allocations: 371.1 kB / 0.5685 GB, free: 99.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006896/0.9569, allocations: 6.075 MB / 0.5744 GB, free: 96.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001799/0.9588, allocations: 82.5 kB / 0.5745 GB, free: 96.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001944/0.959, allocations: 64.36 kB / 0.5746 GB, free: 96.54 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003785/0.9594, allocations: 143.6 kB / 0.5747 GB, free: 96.43 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00369/0.9631, allocations: 2.255 MB / 0.5769 GB, free: 95.94 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003961/0.9635, allocations: 173.6 kB / 0.5771 GB, free: 95.85 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003743/0.9673, allocations: 2.388 MB / 0.5794 GB, free: 94.99 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/0.9673, allocations: 18.61 kB / 0.5794 GB, free: 94.99 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.988e-06/0.9673, allocations: 7.719 kB / 0.5794 GB, free: 94.99 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.9673, allocations: 7.688 kB / 0.5794 GB, free: 94.99 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00825/0.9756, allocations: 4.862 MB / 0.5842 GB, free: 93.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.799e-06/0.9757, allocations: 2.688 kB / 0.5842 GB, free: 93.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009947/0.9767, allocations: 241.7 kB / 0.5844 GB, free: 93.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001484/0.9782, allocations: 0.6283 MB / 0.585 GB, free: 92.93 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.321e-05/0.9783, allocations: 21.2 kB / 0.585 GB, free: 92.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0071/0.9854, allocations: 7.728 MB / 0.5926 GB, free: 87.67 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.596e-06/0.9854, allocations: 2.938 kB / 0.5926 GB, free: 87.67 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00585/0.9913, allocations: 3.716 MB / 0.5962 GB, free: 85.98 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/0.9926, allocations: 434.6 kB / 0.5966 GB, free: 85.71 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002467/0.9929, allocations: 11.56 kB / 0.5966 GB, free: 85.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009539/0.9938, allocations: 79.34 kB / 0.5967 GB, free: 85.71 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003799/0.9942, allocations: 135.8 kB / 0.5968 GB, free: 85.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.659e-05/0.9943, allocations: 42.7 kB / 0.5969 GB, free: 85.68 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001436/0.9958, allocations: 0.9576 MB / 0.5978 GB, free: 85.29 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.9958, allocations: 0 / 0.5978 GB, free: 85.29 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001934/0.9977, allocations: 0.4918 MB / 0.5983 GB, free: 85.28 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 109 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,75.0%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005104/1.003, allocations: 5.121 MB / 0.6033 GB, free: 82.44 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003573/1.006, allocations: 2.394 MB / 0.6056 GB, free: 81.43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/1.006, allocations: 0 / 0.6056 GB, free: 81.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002299/1.009, allocations: 1.575 MB / 0.6072 GB, free: 80.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002207/1.011, allocations: 350.1 kB / 0.6075 GB, free: 80.61 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008752/1.02, allocations: 4.681 MB / 0.6121 GB, free: 78.77 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001546/1.021, allocations: 2.071 MB / 0.6141 GB, free: 77.81 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001371/1.023, allocations: 413.8 kB / 0.6145 GB, free: 77.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001064/1.024, allocations: 0.9189 MB / 0.6154 GB, free: 77.02 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/1.024, allocations: 0 / 0.6154 GB, free: 77.02 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0733/1.097, allocations: 42.74 MB / 0.6571 GB, free: 44.59 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001515/1.097, allocations: 157.1 kB / 0.6573 GB, free: 44.39 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.066/4.163, allocations: 0 / 0.6573 GB, free: 44.39 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat does not exist to compare? outputFormat=mat