Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_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 trunk/package.mo): time 0.001875/0.001875, allocations: 202.1 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009927/0.0009927, allocations: 97.08 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.207e-05/2.208e-05, allocations: 4 kB / 343.8 MB, free: 8.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1266, allocations: 51.48 MB / 395.3 MB, free: 4.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4652/0.5919, allocations: 147.7 MB / 0.5302 GB, free: 10.49 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003094/0.5922, allocations: 98.56 kB / 0.5303 GB, free: 10.44 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.308/1.901, allocations: 361.6 MB / 0.8835 GB, free: 33.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.066e-06/1.901, allocations: 4 kB / 0.8835 GB, free: 33.1 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001281/1.902, allocations: 247.7 kB / 0.8837 GB, free: 32.86 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.04338/1.945, allocations: 10.24 MB / 0.8937 GB, free: 22.54 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.191e-05/1.946, allocations: 8.031 kB / 0.8937 GB, free: 22.53 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02868/1.974, allocations: 4.767 MB / 0.8984 GB, free: 17.74 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02843/2.003, allocations: 9.478 MB / 0.9076 GB, free: 8.281 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007899/2.004, allocations: 344 kB / 0.9079 GB, free: 7.945 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005227/2.009, allocations: 0.6053 MB / 0.9085 GB, free: 7.34 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.4438/2.453, allocations: 13.53 MB / 0.9218 GB, free: 33.79 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0408/2.493, allocations: 15.14 MB / 0.9365 GB, free: 32.64 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003758/2.494, allocations: 14.62 kB / 0.9366 GB, free: 32.64 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002062/2.496, allocations: 7.938 kB / 0.9366 GB, free: 32.64 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000756/2.497, allocations: 0.754 MB / 0.9373 GB, free: 32.62 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1045/2.601, allocations: 56.06 MB / 0.992 GB, free: 19.33 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03056/2.632, allocations: 32.03 MB / 1.023 GB, free: 7.094 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00732/2.639, allocations: 4.385 MB / 1.028 GB, free: 5.461 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02029/2.66, allocations: 10.99 MB / 1.038 GB, free: 16.09 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.433e-05/2.66, allocations: 76.89 kB / 1.038 GB, free: 16.02 MB / 490.7 MB Notification: Performance of pre-optimization done (n=393): time 6.372e-06/2.66, allocations: 3.062 kB / 1.038 GB, free: 16.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=418): time 0.05495/2.715, allocations: 19.71 MB / 1.058 GB, free: 7.586 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.612e-05/2.715, allocations: 129.5 kB / 1.058 GB, free: 7.48 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01052/2.725, allocations: 3.517 MB / 1.061 GB, free: 6.047 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001119/2.727, allocations: 32.77 kB / 1.061 GB, free: 6.012 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004246/2.731, allocations: 4.682 MB / 1.066 GB, free: 2.473 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002483/2.733, allocations: 1.371 MB / 1.067 GB, free: 1.398 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001247/2.735, allocations: 0 / 1.067 GB, free: 1.398 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0008389/2.735, allocations: 0.5405 MB / 1.068 GB, free: 0.9883 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006436/2.742, allocations: 2.891 MB / 1.071 GB, free: 0 / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007632/2.75, allocations: 4.82 MB / 1.075 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01532/2.765, allocations: 5.314 MB / 1.08 GB, free: 10.42 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002269/2.765, allocations: 18.69 kB / 1.08 GB, free: 10.42 MB / 0.4948 GB Notification: Performance of matching and sorting (n=759) (initialization): time 0.04772/2.813, allocations: 10.55 MB / 1.091 GB, free: 3.258 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001229/2.813, allocations: 32 kB / 1.091 GB, free: 3.227 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001883/2.813, allocations: 64 kB / 1.091 GB, free: 3.164 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008405/2.822, allocations: 1.638 MB / 1.092 GB, free: 1.871 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01023/2.832, allocations: 1.348 MB / 1.094 GB, free: 0.8242 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.448/3.28, allocations: 15.89 MB / 1.109 GB, free: 72.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006183/3.286, allocations: 255.6 kB / 1.11 GB, free: 72.31 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001416/3.288, allocations: 280.7 kB / 1.11 GB, free: 72.31 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 296 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (666): * Single equations (assignments): 662 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(8,56.2%) 27,(1,100.0%) 1,(14,39.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001073/3.289, allocations: 287.5 kB / 1.11 GB, free: 72.2 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01812/3.307, allocations: 8.004 MB / 1.118 GB, free: 71.79 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001517/3.309, allocations: 464.5 kB / 1.118 GB, free: 71.78 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0248/3.333, allocations: 8.75 MB / 1.127 GB, free: 71.28 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.051e-05/3.334, allocations: 46.3 kB / 1.127 GB, free: 71.28 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.339e-05/3.334, allocations: 26.08 kB / 1.127 GB, free: 71.28 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.778e-05/3.334, allocations: 24.14 kB / 1.127 GB, free: 71.28 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06728/3.401, allocations: 17.03 MB / 1.144 GB, free: 70.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.953e-05/3.401, allocations: 5.938 kB / 1.144 GB, free: 70.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006037/3.407, allocations: 0.7619 MB / 1.144 GB, free: 70.18 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005515/3.413, allocations: 1.518 MB / 1.146 GB, free: 70.11 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001128/3.414, allocations: 42.89 kB / 1.146 GB, free: 70.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02333/3.437, allocations: 18.78 MB / 1.164 GB, free: 61.39 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.416e-05/3.437, allocations: 10.12 kB / 1.164 GB, free: 61.39 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02705/3.464, allocations: 13.24 MB / 1.177 GB, free: 59.28 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004017/3.469, allocations: 1.153 MB / 1.178 GB, free: 58.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001972/3.471, allocations: 16.38 kB / 1.178 GB, free: 58.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004201/3.475, allocations: 211.9 kB / 1.178 GB, free: 58.94 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001359/3.476, allocations: 335 kB / 1.179 GB, free: 58.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007078/3.477, allocations: 129 kB / 1.179 GB, free: 58.93 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008211/3.485, allocations: 2.586 MB / 1.181 GB, free: 58.75 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.4e-07/3.485, allocations: 3.562 kB / 1.181 GB, free: 58.75 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01199/3.497, allocations: 1.699 MB / 1.183 GB, free: 58.75 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.phi,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (360): * Single equations (assignments): 353 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(14,40.3%) 44,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02612/3.523, allocations: 15.56 MB / 1.198 GB, free: 50.91 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01264/3.536, allocations: 7.827 MB / 1.206 GB, free: 47.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.499e-05/3.536, allocations: 4 kB / 1.206 GB, free: 47.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008102/3.544, allocations: 4.52 MB / 1.21 GB, free: 45.49 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007216/3.551, allocations: 0.9201 MB / 1.211 GB, free: 45.25 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05961/3.611, allocations: 19.44 MB / 1.23 GB, free: 34.89 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01391/3.625, allocations: 6.947 MB / 1.237 GB, free: 29.66 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007851/3.633, allocations: 1.824 MB / 1.239 GB, free: 28.45 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007645/3.641, allocations: 3.975 MB / 1.243 GB, free: 24.75 MB / 0.4948 GB Notification: Performance of SimCode: time 1.032e-06/3.641, allocations: 0 / 1.243 GB, free: 24.75 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5774/4.218, allocations: 137.9 MB / 1.377 GB, free: 56.05 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001857/4.218, allocations: 201.4 kB / 1.378 GB, free: 55.78 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.982/10.2, allocations: 0 / 1.378 GB, free: 55.78 MB / 0.4948 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat