Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001246/0.001246, allocations: 181.4 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.445/1.445, allocations: 205.4 MB / 223.1 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008655/0.0008655, allocations: 102.6 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002495/0.0002495, allocations: 4 kB / 328.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2435, allocations: 47.57 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3893/0.6328, allocations: 152.9 MB / 0.5165 GB, free: 65.63 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/0.6331, allocations: 109.1 kB / 0.5166 GB, free: 65.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.302/1.935, allocations: 457 MB / 0.9628 GB, free: 11.23 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.126e-06/1.935, allocations: 4 kB / 0.9629 GB, free: 11.23 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001715/1.937, allocations: 327.7 kB / 0.9632 GB, free: 10.91 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3978 * Number of variables: 3978 Notification: Performance of Generate backend data structure: time 0.0557/1.993, allocations: 14.07 MB / 0.9769 GB, free: 12.72 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/1.993, allocations: 8.031 kB / 0.9769 GB, free: 12.71 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01168/2.005, allocations: 2.337 MB / 0.9792 GB, free: 10.36 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03839/2.043, allocations: 6.506 MB / 0.9856 GB, free: 3.828 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3623/2.405, allocations: 11.54 MB / 0.9968 GB, free: 31.08 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001709/2.407, allocations: 1.047 MB / 0.9978 GB, free: 31.05 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007299/2.415, allocations: 1.372 MB / 0.9992 GB, free: 31.05 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07253/2.487, allocations: 23.67 MB / 1.022 GB, free: 29.39 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009109/2.488, allocations: 23.73 kB / 1.022 GB, free: 29.39 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006479/2.495, allocations: 0.5915 MB / 1.023 GB, free: 29.39 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001151/2.496, allocations: 0.931 MB / 1.024 GB, free: 29.36 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04878/2.544, allocations: 21.39 MB / 1.045 GB, free: 29.24 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1502/2.695, allocations: 75.13 MB / 1.118 GB, free: 12.64 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03083/2.726, allocations: 28.43 MB / 1.146 GB, free: 7.16 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07742/2.803, allocations: 30.15 MB / 1.175 GB, free: 1.383 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001173/2.803, allocations: 125.3 kB / 1.175 GB, free: 1.25 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=944): time 1.549e-05/2.803, allocations: 0 / 1.175 GB, free: 1.25 MB / 0.4948 GB Notification: Performance of matching and sorting (n=952): time 0.5101/3.313, allocations: 68.36 MB / 1.242 GB, free: 69.81 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/3.314, allocations: 160.5 kB / 1.242 GB, free: 69.7 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006615/3.32, allocations: 4.141 MB / 1.246 GB, free: 69.37 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001889/3.322, allocations: 154.6 kB / 1.246 GB, free: 69.34 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002858/3.325, allocations: 5.321 MB / 1.252 GB, free: 66.66 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003923/3.329, allocations: 3.13 MB / 1.255 GB, free: 64.63 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007122/3.33, allocations: 166 kB / 1.255 GB, free: 64.63 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005986/3.33, allocations: 0.6998 MB / 1.256 GB, free: 64.3 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00828/3.338, allocations: 6.105 MB / 1.262 GB, free: 64.28 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01034/3.349, allocations: 7.979 MB / 1.269 GB, free: 62.3 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01049/3.359, allocations: 7.398 MB / 1.277 GB, free: 62.13 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.635e-05/3.359, allocations: 12.88 kB / 1.277 GB, free: 62.13 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1215) (initialization): time 0.03581/3.395, allocations: 18.68 MB / 1.295 GB, free: 56.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000115/3.395, allocations: 34.77 kB / 1.295 GB, free: 56.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000148/3.396, allocations: 55.88 kB / 1.295 GB, free: 56.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01162/3.407, allocations: 5.905 MB / 1.301 GB, free: 54.94 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007088/3.414, allocations: 1.539 MB / 1.302 GB, free: 54.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02134/3.436, allocations: 20.1 MB / 1.322 GB, free: 38.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007659/3.443, allocations: 429 kB / 1.322 GB, free: 38.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002222/3.446, allocations: 374.2 kB / 1.323 GB, free: 38.16 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 230 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (808): * Single equations (assignments): 755 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * 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: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of prepare postOptimizeDAE: time 0.01284/3.459, allocations: 5.195 MB / 1.328 GB, free: 33.82 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00301/3.462, allocations: 0.6668 MB / 1.328 GB, free: 33.14 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0355/3.497, allocations: 18.32 MB / 1.346 GB, free: 17.39 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.3531/3.85, allocations: 14.58 MB / 1.36 GB, free: 69.37 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.505e-05/3.85, allocations: 7.75 kB / 1.36 GB, free: 69.37 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001748/3.85, allocations: 38.2 kB / 1.36 GB, free: 69.37 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06288/3.913, allocations: 35.81 MB / 1.395 GB, free: 68.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.798e-05/3.913, allocations: 10.34 kB / 1.395 GB, free: 68.13 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005032/3.918, allocations: 1.059 MB / 1.396 GB, free: 68.13 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01146/3.93, allocations: 5.991 MB / 1.402 GB, free: 67.96 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002048/3.932, allocations: 219.2 kB / 1.403 GB, free: 67.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02477/3.957, allocations: 24.46 MB / 1.426 GB, free: 58.01 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.715e-06/3.957, allocations: 8.656 kB / 1.426 GB, free: 58.01 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04812/4.005, allocations: 27.57 MB / 1.453 GB, free: 49.83 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006877/4.012, allocations: 2.114 MB / 1.455 GB, free: 49 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003996/4.016, allocations: 151.3 kB / 1.456 GB, free: 48.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006472/4.022, allocations: 372.1 kB / 1.456 GB, free: 48.79 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002981/4.025, allocations: 0.7203 MB / 1.457 GB, free: 48.63 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00197/4.027, allocations: 256.7 kB / 1.457 GB, free: 48.57 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007733/4.035, allocations: 3.146 MB / 1.46 GB, free: 47.41 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.21e-07/4.035, allocations: 0 / 1.46 GB, free: 47.41 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01378/4.049, allocations: 2.505 MB / 1.462 GB, free: 47.15 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imc.inertiaRotor.w,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (562): * Single equations (assignments): 508 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of Backend phase and start with SimCode phase: time 0.04823/4.097, allocations: 29.4 MB / 1.491 GB, free: 33.37 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02624/4.124, allocations: 15.71 MB / 1.506 GB, free: 21.38 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.104e-05/4.124, allocations: 5.344 kB / 1.506 GB, free: 21.37 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01705/4.141, allocations: 8.897 MB / 1.515 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009123/4.15, allocations: 1.481 MB / 1.517 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4665/4.616, allocations: 126.3 MB / 1.64 GB, free: 31.58 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0163/4.633, allocations: 9.326 MB / 1.649 GB, free: 30.55 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.007198/4.64, allocations: 2.077 MB / 1.651 GB, free: 30.42 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008529/4.648, allocations: 5.266 MB / 1.656 GB, free: 30.42 MB / 0.5105 GB Notification: Performance of SimCode: time 1.032e-06/4.648, allocations: 0 / 1.656 GB, free: 30.42 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6143/5.263, allocations: 257.1 MB / 1.907 GB, free: 7.117 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/5.263, allocations: 259.3 kB / 1.907 GB, free: 6.762 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.033/13.3, allocations: 0 / 1.907 GB, free: 6.762 MB / 0.5105 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat does not exist to compare? outputFormat=mat