Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.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.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",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.001497/0.001497, allocations: 177.1 kB / 13.64 MB, free: 1.676 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.369/1.369, allocations: 221.3 MB / 235.5 MB, free: 2.953 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.0009145/0.0009145, allocations: 95.55 kB / 286.5 MB, free: 252 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.683e-05/2.693e-05, allocations: 0 / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09666/0.0967, allocations: 50.42 MB / 394.4 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3365/0.4333, allocations: 102.5 MB / 496.8 MB, free: 1.004 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002075/0.4335, allocations: 83.95 kB / 496.9 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1058/0.5393, allocations: 40.32 MB / 0.5246 GB, free: 8.34 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.5393, allocations: 0 / 0.5246 GB, free: 8.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000125/0.5395, allocations: 55.88 kB / 0.5247 GB, free: 8.285 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: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.003933/0.5434, allocations: 1.941 MB / 0.5266 GB, free: 6.293 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.5435, allocations: 12.03 kB / 0.5266 GB, free: 6.281 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004348/0.5439, allocations: 261.8 kB / 0.5268 GB, free: 6.016 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006921/0.5446, allocations: 253.6 kB / 0.5271 GB, free: 5.766 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002709/0.5473, allocations: 1.359 MB / 0.5284 GB, free: 4.359 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.903e-05/0.5475, allocations: 143.6 kB / 0.5285 GB, free: 4.219 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003028/0.5478, allocations: 175.9 kB / 0.5287 GB, free: 4.047 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003698/0.5515, allocations: 2.282 MB / 0.5309 GB, free: 1.684 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.365e-05/0.5516, allocations: 7.984 kB / 0.531 GB, free: 1.676 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001741/0.5517, allocations: 75.98 kB / 0.531 GB, free: 1.602 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.014e-05/0.5518, allocations: 83.52 kB / 0.5311 GB, free: 1.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003017/0.5549, allocations: 1.783 MB / 0.5328 GB, free: 15.73 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01212/0.567, allocations: 7.16 MB / 0.5398 GB, free: 8.379 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001913/0.569, allocations: 1.261 MB / 0.5411 GB, free: 7.043 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001023/0.57, allocations: 0.6975 MB / 0.5417 GB, free: 6.348 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002989/0.5704, allocations: 137.8 kB / 0.5419 GB, free: 6.195 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.551e-05/0.5704, allocations: 47.27 kB / 0.5419 GB, free: 6.141 MB / 426.7 MB Notification: Performance of pre-optimization done (n=90): time 3.046e-06/0.5704, allocations: 0 / 0.5419 GB, free: 6.141 MB / 426.7 MB Notification: Performance of matching and sorting (n=114): time 0.01423/0.5846, allocations: 5.974 MB / 0.5478 GB, free: 100 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.5847, allocations: 64.41 kB / 0.5478 GB, free: 24 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2138/0.7985, allocations: 1.023 MB / 0.5488 GB, free: 109.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002803/0.7988, allocations: 44.7 kB / 0.5489 GB, free: 109.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005801/0.7994, allocations: 0.8613 MB / 0.5497 GB, free: 109.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003384/0.7998, allocations: 399.8 kB / 0.5501 GB, free: 109 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.686e-05/0.7998, allocations: 26.41 kB / 0.5501 GB, free: 109 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.131e-05/0.7999, allocations: 361.5 kB / 0.5505 GB, free: 108.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009119/0.8009, allocations: 0.6351 MB / 0.5511 GB, free: 108.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/0.8019, allocations: 0.9329 MB / 0.552 GB, free: 108.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.8031, allocations: 0.791 MB / 0.5528 GB, free: 108.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.8031, allocations: 4.469 kB / 0.5528 GB, free: 108.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.004156/0.8073, allocations: 2.338 MB / 0.555 GB, free: 108.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.959e-05/0.8073, allocations: 10 kB / 0.5551 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.226e-05/0.8073, allocations: 11.05 kB / 0.5551 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001647/0.809, allocations: 0.6293 MB / 0.5557 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/0.8101, allocations: 288.9 kB / 0.556 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007457/0.8175, allocations: 6.304 MB / 0.5621 GB, free: 105.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/0.819, allocations: 88.45 kB / 0.5622 GB, free: 105.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/0.8191, allocations: 53.66 kB / 0.5622 GB, free: 105.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,76.0%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002656/0.8194, allocations: 181.5 kB / 0.5624 GB, free: 105.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002593/0.8197, allocations: 137.6 kB / 0.5626 GB, free: 105.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004006/0.8237, allocations: 2.192 MB / 0.5647 GB, free: 105.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.8237, allocations: 10.81 kB / 0.5647 GB, free: 105.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.8237, allocations: 9.359 kB / 0.5647 GB, free: 105.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.511e-05/0.8238, allocations: 6.484 kB / 0.5647 GB, free: 105.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007326/0.8311, allocations: 4.378 MB / 0.569 GB, free: 104 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.128e-06/0.8311, allocations: 3.312 kB / 0.569 GB, free: 104 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007798/0.8319, allocations: 178.1 kB / 0.5692 GB, free: 104 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001811/0.8337, allocations: 0.709 MB / 0.5699 GB, free: 103.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-05/0.8339, allocations: 34.31 kB / 0.5699 GB, free: 103.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007726/0.8416, allocations: 8.034 MB / 0.5777 GB, free: 98.27 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.8416, allocations: 3.906 kB / 0.5777 GB, free: 98.27 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004321/0.846, allocations: 3.283 MB / 0.5809 GB, free: 96.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008623/0.8469, allocations: 360.2 kB / 0.5813 GB, free: 96.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000323/0.8472, allocations: 31.45 kB / 0.5813 GB, free: 96.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009837/0.8482, allocations: 84.61 kB / 0.5814 GB, free: 96.46 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002558/0.8485, allocations: 104.3 kB / 0.5815 GB, free: 96.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.697e-05/0.8486, allocations: 35.28 kB / 0.5815 GB, free: 96.44 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001233/0.8498, allocations: 0.79 MB / 0.5823 GB, free: 96.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8498, allocations: 5.875 kB / 0.5823 GB, free: 96.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001849/0.8517, allocations: 475.6 kB / 0.5828 GB, free: 96.05 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 81 * 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: 3 * 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: 3 {(5,84.0%) 23,(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.00481/0.8565, allocations: 4.848 MB / 0.5875 GB, free: 93.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003136/0.8596, allocations: 2.207 MB / 0.5897 GB, free: 92.15 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.952e-06/0.8597, allocations: 7.625 kB / 0.5897 GB, free: 92.15 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002001/0.8617, allocations: 1.513 MB / 0.5911 GB, free: 91.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001729/0.8634, allocations: 357.3 kB / 0.5915 GB, free: 91.24 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006666/0.8701, allocations: 3.782 MB / 0.5952 GB, free: 89.58 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00143/0.8716, allocations: 1.689 MB / 0.5968 GB, free: 88.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001139/0.8727, allocations: 292.1 kB / 0.5971 GB, free: 88.67 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008685/0.8736, allocations: 0.6843 MB / 0.5978 GB, free: 88.13 MB / 426.7 MB Notification: Performance of SimCode: time 1.814e-06/0.8736, allocations: 0 / 0.5978 GB, free: 88.13 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06516/0.9388, allocations: 39.92 MB / 0.6368 GB, free: 63.24 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001268/0.939, allocations: 199.9 kB / 0.6369 GB, free: 63.01 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.913/3.852, allocations: 3.281 kB / 0.637 GB, free: 63.01 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat does not exist to compare? outputFormat=mat