Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 98.48 kB / 16.3 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 182.1 kB / 17.19 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 223.2 MB / 241.1 MB, free: 14.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002822/0.0002822, allocations: 8 kB / 300.8 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1012, allocations: 50.43 MB / 351.3 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.01938/0.1207, allocations: 18.93 MB / 370.2 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.185/0.3057, allocations: 6.754 MB / 376.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00325/0.309, allocations: 138 kB / 377.1 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003994/0.313, allocations: 1.265 MB / 378.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008984/0.322, allocations: 2.063 MB / 380.4 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004014/0.3261, allocations: 0.9186 MB / 381.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01234/0.3384, allocations: 5.745 MB / 387.1 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007212/0.3456, allocations: 4.976 MB / 392 MB, free: 7.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006373/0.352, allocations: 2.727 MB / 394.8 MB, free: 6.383 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006681/0.3588, allocations: 3.281 MB / 398 MB, free: 4.312 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001714/0.3605, allocations: 456 kB / 398.5 MB, free: 4.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003621/0.3641, allocations: 0.6615 MB / 399.2 MB, free: 4.203 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001575/0.3657, allocations: 1.839 MB / 401 MB, free: 2.922 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003284/0.369, allocations: 1.569 MB / 402.6 MB, free: 1.949 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01281/0.3818, allocations: 11.7 MB / 414.3 MB, free: 6.242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.3819, allocations: 0 / 414.3 MB, free: 6.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.757e-06/0.3819, allocations: 0 / 414.3 MB, free: 6.242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004439/0.3823, allocations: 3.938 kB / 414.3 MB, free: 6.238 MB / 318.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.01988/0.4022, allocations: 7.545 MB / 421.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.4023, allocations: 8.031 kB / 421.8 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002985/0.4053, allocations: 0.9277 MB / 422.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007179/0.4125, allocations: 1.314 MB / 424.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01315/0.4257, allocations: 5.11 MB / 429.2 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005505/0.4262, allocations: 0.4977 MB / 429.7 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002337/0.4286, allocations: 0.66 MB / 430.3 MB, free: 6.082 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02012/0.4487, allocations: 9.358 MB / 439.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001763/0.4489, allocations: 11.84 kB / 439.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008714/0.4498, allocations: 284 kB / 440 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003179/0.4501, allocations: 301.4 kB / 440.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01709/0.4672, allocations: 8.071 MB / 448.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05416/0.5214, allocations: 29.45 MB / 477.8 MB, free: 5.805 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01162/0.5331, allocations: 11.96 MB / 489.8 MB, free: 8.711 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0143/0.5474, allocations: 6.872 MB / 496.6 MB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.538e-05/0.5476, allocations: 69.05 kB / 496.7 MB, free: 1.648 MB / 398.1 MB Notification: Performance of pre-optimization done (n=316): time 7.094e-06/0.5476, allocations: 0 / 496.7 MB, free: 1.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=335): time 0.03259/0.5802, allocations: 16.22 MB / 0.5009 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.5803, allocations: 86.05 kB / 0.501 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005565/0.5858, allocations: 3.914 MB / 0.5048 GB, free: 12.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006376/0.5865, allocations: 81.7 kB / 0.5049 GB, free: 12.79 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002254/0.5888, allocations: 3.088 MB / 0.5079 GB, free: 9.668 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001222/0.59, allocations: 1.12 MB / 0.509 GB, free: 8.531 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002094/0.5902, allocations: 80 kB / 0.5091 GB, free: 8.453 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002353/0.5905, allocations: 458.3 kB / 0.5095 GB, free: 8 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002992/0.5935, allocations: 1.913 MB / 0.5114 GB, free: 6.086 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003638/0.5971, allocations: 2.865 MB / 0.5142 GB, free: 2.828 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003734/0.6009, allocations: 2.345 MB / 0.5164 GB, free: 484 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-05/0.6009, allocations: 8 kB / 0.5165 GB, free: 476 kB / 430.1 MB Notification: Performance of matching and sorting (n=495) (initialization): time 0.01125/0.6122, allocations: 6.505 MB / 0.5228 GB, free: 9.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.116e-05/0.6122, allocations: 16 kB / 0.5228 GB, free: 9.824 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.771e-05/0.6123, allocations: 31.98 kB / 0.5229 GB, free: 9.793 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002841/0.6151, allocations: 1.279 MB / 0.5241 GB, free: 8.473 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003395/0.6186, allocations: 0.8347 MB / 0.5249 GB, free: 7.637 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3639/0.9825, allocations: 21.18 MB / 0.5456 GB, free: 125.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003713/0.9862, allocations: 209.1 kB / 0.5458 GB, free: 125.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005775/0.9868, allocations: 153.6 kB / 0.5459 GB, free: 125.8 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.004941/0.9918, allocations: 2.181 MB / 0.5481 GB, free: 124.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001038/0.9928, allocations: 451.8 kB / 0.5485 GB, free: 124.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01087/1.004, allocations: 6.205 MB / 0.5546 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.708e-05/1.004, allocations: 31.88 kB / 0.5546 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.649e-05/1.004, allocations: 19.41 kB / 0.5546 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.222e-05/1.004, allocations: 13.88 kB / 0.5546 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02012/1.024, allocations: 12.58 MB / 0.5669 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.167e-05/1.024, allocations: 3.969 kB / 0.5669 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001873/1.026, allocations: 477.5 kB / 0.5674 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00351/1.029, allocations: 1.621 MB / 0.569 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003151/1.03, allocations: 71.33 kB / 0.569 GB, free: 116 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02148/1.051, allocations: 30.79 MB / 0.5991 GB, free: 89.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/1.051, allocations: 3.812 kB / 0.5991 GB, free: 89.52 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01171/1.063, allocations: 9.207 MB / 0.6081 GB, free: 80.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002998/1.066, allocations: 0.9197 MB / 0.609 GB, free: 80.12 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001279/1.067, allocations: 75.94 kB / 0.6091 GB, free: 80.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002799/1.07, allocations: 207.8 kB / 0.6093 GB, free: 79.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008622/1.071, allocations: 286 kB / 0.6095 GB, free: 79.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003514/1.072, allocations: 91.97 kB / 0.6096 GB, free: 79.47 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005643/1.077, allocations: 2.647 MB / 0.6122 GB, free: 76.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.51e-07/1.077, allocations: 0 / 0.6122 GB, free: 76.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007556/1.085, allocations: 1.343 MB / 0.6135 GB, free: 75.48 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%) 1,(1,100.0%) 8,(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.0157/1.101, allocations: 10.57 MB / 0.6238 GB, free: 64.62 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01003/1.111, allocations: 6.448 MB / 0.6301 GB, free: 57.96 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/1.111, allocations: 4 kB / 0.6301 GB, free: 57.96 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006521/1.117, allocations: 4.846 MB / 0.6349 GB, free: 52.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006397/1.124, allocations: 1.244 MB / 0.6361 GB, free: 51.67 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1034/1.227, allocations: 61.78 MB / 0.6964 GB, free: 3.148 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2673/1.494, allocations: 4.61 MB / 0.7009 GB, free: 142.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005003/1.499, allocations: 1.068 MB / 0.702 GB, free: 142.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004167/1.504, allocations: 2.682 MB / 0.7046 GB, free: 142.1 MB / 462.1 MB Notification: Performance of SimCode: time 1.232e-06/1.504, allocations: 0 / 0.7046 GB, free: 142.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1643/1.668, allocations: 117.2 MB / 0.819 GB, free: 48.55 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001451/1.668, allocations: 243.1 kB / 0.8193 GB, free: 48.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.091/6.76, allocations: 3.828 kB / 0.8193 GB, free: 48.3 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat