Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",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.00136/0.00136, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.322/1.322, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009119/0.0009119, allocations: 81.38 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002756/0.0002757, allocations: 4 kB / 351.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2526, allocations: 50.41 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1324/0.3851, allocations: 109.7 MB / 0.4993 GB, free: 2.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003007/0.3854, allocations: 95.95 kB / 0.4994 GB, free: 2.656 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3814/0.7668, allocations: 80.51 MB / 0.578 GB, free: 35.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.7668, allocations: 0 / 0.578 GB, free: 35.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002263/0.7671, allocations: 75.88 kB / 0.5781 GB, free: 35.57 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.008912/0.776, allocations: 3.548 MB / 0.5815 GB, free: 31.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.7761, allocations: 8.031 kB / 0.5815 GB, free: 31.94 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001239/0.7773, allocations: 450.9 kB / 0.582 GB, free: 31.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004029/0.7813, allocations: 0.7335 MB / 0.5827 GB, free: 30.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007521/0.7889, allocations: 3.379 MB / 0.586 GB, free: 27.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000185/0.7891, allocations: 234.3 kB / 0.5862 GB, free: 27.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008738/0.79, allocations: 323.8 kB / 0.5865 GB, free: 26.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007865/0.7979, allocations: 4.17 MB / 0.5906 GB, free: 22.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-05/0.798, allocations: 0 / 0.5906 GB, free: 22.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004664/0.7985, allocations: 128 kB / 0.5907 GB, free: 22.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001092/0.7986, allocations: 146.2 kB / 0.5908 GB, free: 22.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005577/0.8042, allocations: 3.468 MB / 0.5942 GB, free: 18.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0204/0.8246, allocations: 13.56 MB / 0.6075 GB, free: 4.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005564/0.8302, allocations: 6.87 MB / 0.6142 GB, free: 13.04 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006269/0.8365, allocations: 3.249 MB / 0.6173 GB, free: 9.707 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.684e-05/0.8366, allocations: 51.88 kB / 0.6174 GB, free: 9.648 MB / 394.7 MB Notification: Performance of pre-optimization done (n=130): time 5.851e-06/0.8367, allocations: 4 kB / 0.6174 GB, free: 9.645 MB / 394.7 MB Notification: Performance of matching and sorting (n=150): time 0.01529/0.852, allocations: 6.799 MB / 0.624 GB, free: 2.652 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.8521, allocations: 68.72 kB / 0.6241 GB, free: 2.574 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003384/0.8554, allocations: 1.615 MB / 0.6257 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002005/0.8557, allocations: 49.7 kB / 0.6257 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.8568, allocations: 1.412 MB / 0.6271 GB, free: 15.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005078/0.8573, allocations: 0.5083 MB / 0.6276 GB, free: 14.96 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.8575, allocations: 39.94 kB / 0.6276 GB, free: 14.92 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.8577, allocations: 373.9 kB / 0.628 GB, free: 14.55 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001349/0.859, allocations: 0.7847 MB / 0.6288 GB, free: 13.77 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001597/0.8606, allocations: 1.222 MB / 0.63 GB, free: 12.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001623/0.8623, allocations: 0.9972 MB / 0.6309 GB, free: 11.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.28e-05/0.8623, allocations: 4 kB / 0.6309 GB, free: 11.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.004797/0.8671, allocations: 2.695 MB / 0.6336 GB, free: 8.648 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.407e-05/0.8671, allocations: 12 kB / 0.6336 GB, free: 8.637 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.605e-05/0.8672, allocations: 15.94 kB / 0.6336 GB, free: 8.621 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001489/0.8687, allocations: 0.5015 MB / 0.6341 GB, free: 8.113 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001626/0.8703, allocations: 399.4 kB / 0.6345 GB, free: 7.723 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008139/0.8785, allocations: 6.541 MB / 0.6409 GB, free: 0.9102 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00183/0.8803, allocations: 83.86 kB / 0.6409 GB, free: 0.8281 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003076/0.8807, allocations: 75.92 kB / 0.641 GB, free: 0.7539 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 182 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002492/0.8832, allocations: 1.044 MB / 0.642 GB, free: 15.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005299/0.8837, allocations: 201.5 kB / 0.6422 GB, free: 15.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004979/0.8887, allocations: 2.57 MB / 0.6447 GB, free: 12.86 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.486e-05/0.8888, allocations: 12 kB / 0.6447 GB, free: 12.85 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.071e-05/0.8888, allocations: 11.98 kB / 0.6448 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.49e-05/0.8888, allocations: 3.984 kB / 0.6448 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01215/0.901, allocations: 5.649 MB / 0.6503 GB, free: 7.059 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.359e-05/0.901, allocations: 0 / 0.6503 GB, free: 7.059 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001239/0.9023, allocations: 247.8 kB / 0.6505 GB, free: 6.816 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001414/0.9037, allocations: 495.5 kB / 0.651 GB, free: 6.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001689/0.9039, allocations: 39.98 kB / 0.651 GB, free: 6.281 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.236/1.14, allocations: 10.6 MB / 0.6614 GB, free: 83.64 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/1.14, allocations: 6.625 kB / 0.6614 GB, free: 83.64 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005236/1.145, allocations: 3.759 MB / 0.665 GB, free: 83.07 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001426/1.147, allocations: 467.2 kB / 0.6655 GB, free: 82.97 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000391/1.147, allocations: 29.38 kB / 0.6655 GB, free: 82.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/1.148, allocations: 76.97 kB / 0.6656 GB, free: 82.97 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003209/1.148, allocations: 118.2 kB / 0.6657 GB, free: 82.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.89e-05/1.149, allocations: 41.73 kB / 0.6657 GB, free: 82.97 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001885/1.15, allocations: 1.248 MB / 0.667 GB, free: 82.86 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.21e-07/1.15, allocations: 0 / 0.667 GB, free: 82.86 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002552/1.153, allocations: 0.6317 MB / 0.6676 GB, free: 82.86 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.stray.Phi.re,aimc.stator.stray.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 103 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005763/1.159, allocations: 4.959 MB / 0.6724 GB, free: 81.36 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00365/1.162, allocations: 2.438 MB / 0.6748 GB, free: 81.07 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/1.162, allocations: 0 / 0.6748 GB, free: 81.07 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002151/1.165, allocations: 1.748 MB / 0.6765 GB, free: 80.49 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002297/1.167, allocations: 484.6 kB / 0.677 GB, free: 80.48 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0311/1.198, allocations: 26.23 MB / 0.7026 GB, free: 65.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001994/1.2, allocations: 2.434 MB / 0.705 GB, free: 64.82 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001635/1.202, allocations: 415.6 kB / 0.7054 GB, free: 64.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001274/1.203, allocations: 1.123 MB / 0.7065 GB, free: 64.75 MB / 426.7 MB Notification: Performance of SimCode: time 8.265e-06/1.203, allocations: 1.969 kB / 0.7065 GB, free: 64.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08422/1.287, allocations: 54.53 MB / 0.7597 GB, free: 36.02 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001547/1.288, allocations: 248.6 kB / 0.76 GB, free: 35.71 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.589/4.877, allocations: 0 / 0.76 GB, free: 35.71 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat