Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001534/0.001534, 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.496/1.496, 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.001063/0.001063, allocations: 93.14 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.74e-05/1.736e-05, allocations: 0 / 343.8 MB, free: 8.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1137, allocations: 51.47 MB / 395.3 MB, free: 4.645 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3737/0.4874, allocations: 119.7 MB / 0.5029 GB, free: 5.781 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002533/0.4877, allocations: 96.06 kB / 0.503 GB, free: 5.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5789/1.067, allocations: 135 MB / 0.6349 GB, free: 71.66 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.067, allocations: 0 / 0.6349 GB, free: 71.66 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006779/1.067, allocations: 120.6 kB / 0.635 GB, free: 71.64 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01812/1.086, allocations: 4.817 MB / 0.6397 GB, free: 69.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/1.086, allocations: 7 kB / 0.6397 GB, free: 69.8 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006953/1.093, allocations: 1.012 MB / 0.6407 GB, free: 69.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01258/1.105, allocations: 4.519 MB / 0.6451 GB, free: 67.82 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003146/1.106, allocations: 160.5 kB / 0.6453 GB, free: 67.82 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002208/1.108, allocations: 280.2 kB / 0.6455 GB, free: 67.81 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01217/1.12, allocations: 5.103 MB / 0.6505 GB, free: 65.61 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01409/1.134, allocations: 5.894 MB / 0.6563 GB, free: 62.96 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001231/1.134, allocations: 11.47 kB / 0.6563 GB, free: 62.96 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004349/1.135, allocations: 3.906 kB / 0.6563 GB, free: 62.96 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001749/1.135, allocations: 228.6 kB / 0.6565 GB, free: 62.94 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02882/1.164, allocations: 20.11 MB / 0.6761 GB, free: 52.24 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006681/1.17, allocations: 9.711 MB / 0.6856 GB, free: 43.85 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00316/1.174, allocations: 2.311 MB / 0.6879 GB, free: 42.99 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009749/1.183, allocations: 6.534 MB / 0.6943 GB, free: 39.61 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/1.184, allocations: 63.75 kB / 0.6943 GB, free: 39.55 MB / 442.7 MB Notification: Performance of pre-optimization done (n=217): time 5.801e-06/1.184, allocations: 0 / 0.6943 GB, free: 39.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=224): time 0.01375/1.197, allocations: 7.46 MB / 0.7016 GB, free: 35.28 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.681e-05/1.197, allocations: 77.41 kB / 0.7017 GB, free: 35.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002825/1.2, allocations: 2.104 MB / 0.7037 GB, free: 33.31 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001783/1.2, allocations: 29.7 kB / 0.7038 GB, free: 33.27 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009798/1.201, allocations: 2.173 MB / 0.7059 GB, free: 31.33 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000415/1.202, allocations: 0.7209 MB / 0.7066 GB, free: 30.66 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/1.202, allocations: 0 / 0.7066 GB, free: 30.66 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/1.202, allocations: 401.8 kB / 0.707 GB, free: 30.3 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001319/1.203, allocations: 1.159 MB / 0.7081 GB, free: 29.26 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001493/1.205, allocations: 1.71 MB / 0.7098 GB, free: 27.47 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00248/1.207, allocations: 1.66 MB / 0.7114 GB, free: 26.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.357e-06/1.207, allocations: 4 kB / 0.7114 GB, free: 26.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005954/1.213, allocations: 3.949 MB / 0.7153 GB, free: 22.41 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.679e-05/1.213, allocations: 16.03 kB / 0.7153 GB, free: 22.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.194e-05/1.213, allocations: 16 kB / 0.7153 GB, free: 22.38 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001381/1.215, allocations: 0.6291 MB / 0.7159 GB, free: 21.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001983/1.217, allocations: 0.5499 MB / 0.7164 GB, free: 21.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007468/1.224, allocations: 9.618 MB / 0.7258 GB, free: 11.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002299/1.227, allocations: 60.02 kB / 0.7259 GB, free: 11.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002393/1.227, allocations: 99.98 kB / 0.726 GB, free: 10.96 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 264 * 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: 4 * 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%) 8,(2,100.0%) 26,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004278/1.227, allocations: 164.3 kB / 0.7261 GB, free: 10.8 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005422/1.233, allocations: 3.536 MB / 0.7296 GB, free: 7.199 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004871/1.233, allocations: 280.6 kB / 0.7299 GB, free: 6.922 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005706/1.239, allocations: 3.747 MB / 0.7335 GB, free: 3.102 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/1.239, allocations: 20 kB / 0.7335 GB, free: 3.082 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/1.239, allocations: 12 kB / 0.7336 GB, free: 3.07 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.909e-05/1.239, allocations: 11.95 kB / 0.7336 GB, free: 3.059 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2744/1.513, allocations: 7.734 MB / 0.7411 GB, free: 66.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/1.514, allocations: 0 / 0.7411 GB, free: 66.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001461/1.515, allocations: 342.6 kB / 0.7414 GB, free: 66.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002097/1.517, allocations: 0.7891 MB / 0.7422 GB, free: 66.56 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001771/1.517, allocations: 32.05 kB / 0.7422 GB, free: 66.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01188/1.529, allocations: 13.84 MB / 0.7558 GB, free: 59.09 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/1.529, allocations: 3.219 kB / 0.7558 GB, free: 59.09 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008579/1.538, allocations: 5.634 MB / 0.7613 GB, free: 58.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001862/1.54, allocations: 0.6483 MB / 0.7619 GB, free: 58.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004491/1.54, allocations: 20.88 kB / 0.7619 GB, free: 58.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001362/1.542, allocations: 85.05 kB / 0.762 GB, free: 58.25 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004587/1.542, allocations: 182.7 kB / 0.7622 GB, free: 58.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001483/1.542, allocations: 61.39 kB / 0.7622 GB, free: 58.25 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002364/1.545, allocations: 1.588 MB / 0.7638 GB, free: 58.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.545, allocations: 0 / 0.7638 GB, free: 58.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003744/1.548, allocations: 0.8677 MB / 0.7646 GB, free: 58.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (154): * Single equations (assignments): 148 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00847/1.557, allocations: 7.029 MB / 0.7715 GB, free: 56.36 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00501/1.562, allocations: 3.547 MB / 0.775 GB, free: 55.79 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/1.562, allocations: 1.188 kB / 0.775 GB, free: 55.79 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003427/1.565, allocations: 2.441 MB / 0.7773 GB, free: 55.12 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003371/1.569, allocations: 0.6194 MB / 0.778 GB, free: 55.11 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01657/1.585, allocations: 8.87 MB / 0.7866 GB, free: 51.98 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003977/1.589, allocations: 3.515 MB / 0.79 GB, free: 50.64 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002824/1.592, allocations: 0.6901 MB / 0.7907 GB, free: 50.56 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002002/1.594, allocations: 1.811 MB / 0.7925 GB, free: 49.04 MB / 442.7 MB Notification: Performance of SimCode: time 8.51e-07/1.594, allocations: 0 / 0.7925 GB, free: 49.04 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1339/1.728, allocations: 71.6 MB / 0.8624 GB, free: 23.5 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002346/1.728, allocations: 183.8 kB / 0.8626 GB, free: 23.32 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.516/6.244, allocations: 0 / 0.8626 GB, free: 23.32 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat