Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001385/0.001385, allocations: 95.52 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001761/0.001761, allocations: 204 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000282/0.000282, allocations: 8 kB / 306.7 MB, free: 1.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0938/0.09411, allocations: 51.49 MB / 358.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.213/0.3072, allocations: 19.46 MB / 377.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01438/0.3216, allocations: 7.01 MB / 384.7 MB, free: 7.863 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004503/0.3261, allocations: 142.9 kB / 384.8 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005373/0.3315, allocations: 1.298 MB / 386.1 MB, free: 7.246 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01047/0.3421, allocations: 2.111 MB / 388.2 MB, free: 5.844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004731/0.3468, allocations: 0.9489 MB / 389.2 MB, free: 5.293 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01304/0.3599, allocations: 5.829 MB / 395 MB, free: 2.164 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008579/0.3685, allocations: 4.985 MB / 400 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007292/0.3759, allocations: 2.744 MB / 402.7 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008026/0.3839, allocations: 3.295 MB / 406 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002564/0.3865, allocations: 459.3 kB / 406.5 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004897/0.3915, allocations: 0.6793 MB / 407.2 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003564/0.3951, allocations: 1.826 MB / 409 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004308/0.3994, allocations: 1.576 MB / 410.6 MB, free: 8.199 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01678/0.4162, allocations: 11.73 MB / 422.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.4162, allocations: 0 / 422.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.377e-06/0.4163, allocations: 0 / 422.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0005263/0.4168, allocations: 0 / 422.3 MB, free: 12.43 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02169/0.4385, allocations: 7.595 MB / 429.9 MB, free: 4.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.4385, allocations: 11.97 kB / 429.9 MB, free: 4.738 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00319/0.4417, allocations: 0.9294 MB / 430.8 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008247/0.45, allocations: 1.349 MB / 432.2 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01393/0.464, allocations: 5.124 MB / 437.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006079/0.4646, allocations: 0.4977 MB / 437.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002506/0.4671, allocations: 0.6677 MB / 438.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02191/0.4891, allocations: 9.363 MB / 447.8 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001601/0.4893, allocations: 7.906 kB / 447.8 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007265/0.49, allocations: 283.9 kB / 448.1 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002801/0.4903, allocations: 301.4 kB / 448.4 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01575/0.5061, allocations: 8.067 MB / 456.5 MB, free: 9.934 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05076/0.5569, allocations: 29.65 MB / 486.1 MB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01577/0.5727, allocations: 12.3 MB / 498.4 MB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02023/0.593, allocations: 7.175 MB / 0.4937 GB, free: 6.738 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.478e-05/0.5931, allocations: 65.05 kB / 0.4938 GB, free: 6.664 MB / 414.1 MB Notification: Performance of pre-optimization done (n=316): time 7.023e-06/0.5931, allocations: 0 / 0.4938 GB, free: 6.664 MB / 414.1 MB Notification: Performance of matching and sorting (n=335): time 0.03507/0.6282, allocations: 16.36 MB / 0.5098 GB, free: 5.766 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.836e-05/0.6283, allocations: 86.05 kB / 0.5099 GB, free: 5.668 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006039/0.6343, allocations: 3.939 MB / 0.5137 GB, free: 1.707 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005739/0.6349, allocations: 81.7 kB / 0.5138 GB, free: 1.621 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002746/0.6377, allocations: 3.092 MB / 0.5168 GB, free: 14.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001411/0.6391, allocations: 1.128 MB / 0.5179 GB, free: 13.35 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002148/0.6393, allocations: 80 kB / 0.518 GB, free: 13.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002421/0.6396, allocations: 462.2 kB / 0.5184 GB, free: 12.82 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003106/0.6427, allocations: 1.917 MB / 0.5203 GB, free: 10.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003488/0.6462, allocations: 2.865 MB / 0.5231 GB, free: 7.645 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003249/0.6495, allocations: 2.346 MB / 0.5254 GB, free: 5.285 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-05/0.6495, allocations: 8 kB / 0.5254 GB, free: 5.277 MB / 446.1 MB Notification: Performance of matching and sorting (n=495) (initialization): time 0.3236/0.9731, allocations: 6.511 MB / 0.5318 GB, free: 130.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.661e-05/0.9732, allocations: 19.44 kB / 0.5318 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.892e-05/0.9732, allocations: 28.66 kB / 0.5318 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003119/0.9764, allocations: 1.268 MB / 0.533 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00359/0.98, allocations: 0.8319 MB / 0.5339 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01683/0.9968, allocations: 21.2 MB / 0.5545 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003932/1.001, allocations: 209.2 kB / 0.5547 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004302/1.001, allocations: 155.9 kB / 0.5549 GB, free: 114.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * Number of states: 0 () * Number of discrete variables: 9 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (432): * Single equations (assignments): 418 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 11 {(1,100.0%) 1,(2,100.0%) 14,(1,100.0%) 8,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00498/1.006, allocations: 2.19 MB / 0.557 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001135/1.007, allocations: 455 kB / 0.5575 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009508/1.017, allocations: 6.207 MB / 0.5635 GB, free: 110.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.202e-05/1.017, allocations: 31.53 kB / 0.5636 GB, free: 110.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.305e-05/1.017, allocations: 15.75 kB / 0.5636 GB, free: 110.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.593e-05/1.017, allocations: 15.52 kB / 0.5636 GB, free: 110.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02007/1.037, allocations: 12.58 MB / 0.5759 GB, free: 105.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/1.037, allocations: 6.016 kB / 0.5759 GB, free: 105.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001832/1.039, allocations: 484.8 kB / 0.5763 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003128/1.042, allocations: 1.614 MB / 0.5779 GB, free: 104.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002504/1.042, allocations: 78.28 kB / 0.578 GB, free: 104.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01957/1.062, allocations: 30.78 MB / 0.6081 GB, free: 74.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.062, allocations: 4.031 kB / 0.6081 GB, free: 74.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0124/1.074, allocations: 9.215 MB / 0.6171 GB, free: 65.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003099/1.078, allocations: 0.9263 MB / 0.618 GB, free: 64.71 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008761/1.078, allocations: 71.98 kB / 0.618 GB, free: 64.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001982/1.08, allocations: 211.8 kB / 0.6182 GB, free: 64.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000611/1.081, allocations: 276.8 kB / 0.6185 GB, free: 64.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00019/1.081, allocations: 95.97 kB / 0.6186 GB, free: 64.07 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00356/1.085, allocations: 2.663 MB / 0.6212 GB, free: 61.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.01e-07/1.085, allocations: 4 kB / 0.6212 GB, free: 61.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004363/1.089, allocations: 1.355 MB / 0.6225 GB, free: 60.05 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.inertiaRotor.w,aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsE.inertiaRotor.w,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (242): * Single equations (assignments): 225 * 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: 16 * 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: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0108/1.1, allocations: 10.58 MB / 0.6328 GB, free: 49.19 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007169/1.107, allocations: 6.452 MB / 0.6391 GB, free: 42.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/1.107, allocations: 0 / 0.6391 GB, free: 42.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005286/1.113, allocations: 4.852 MB / 0.6439 GB, free: 37.45 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005523/1.118, allocations: 1.266 MB / 0.6451 GB, free: 36.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09278/1.211, allocations: 62.08 MB / 0.7057 GB, free: 3.395 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2099/1.421, allocations: 4.618 MB / 0.7102 GB, free: 152.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004932/1.426, allocations: 1.072 MB / 0.7113 GB, free: 152.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004686/1.431, allocations: 2.703 MB / 0.7139 GB, free: 152.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.804e-06/1.431, allocations: 3.062 kB / 0.7139 GB, free: 152.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.468/1.899, allocations: 118.1 MB / 0.8292 GB, free: 57.84 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001735/1.899, allocations: 246.7 kB / 0.8295 GB, free: 57.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.025/6.923, allocations: 0 / 0.8295 GB, free: 57.6 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat