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.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 3.2.3+maint.om/package.mo", uses=false) 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 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_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.0009577/0.0009581, allocations: 96.25 kB / 16.95 MB, free: 5.977 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.0009186/0.0009186, allocations: 173.9 kB / 17.83 MB, free: 5.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.405/1.405, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000439/0.0004391, allocations: 16 kB / 280.9 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09652/0.09697, allocations: 47.58 MB / 328.5 MB, free: 3.945 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.03953/0.1365, allocations: 39.63 MB / 368.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02459/0.1612, allocations: 10.92 MB / 379 MB, free: 1.227 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008336/0.1696, allocations: 278.9 kB / 379.3 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.204/0.3736, allocations: 2.222 MB / 381.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01705/0.3907, allocations: 4.037 MB / 385.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008582/0.3993, allocations: 2.003 MB / 387.6 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03535/0.4346, allocations: 23.29 MB / 410.9 MB, free: 8.039 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07195/0.5066, allocations: 31.94 MB / 442.8 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02169/0.5284, allocations: 7.826 MB / 450.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01909/0.5475, allocations: 8.93 MB / 459.6 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005981/0.5536, allocations: 1.219 MB / 460.8 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01143/0.565, allocations: 1.594 MB / 462.4 MB, free: 140 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009547/0.5746, allocations: 3.93 MB / 466.3 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01394/0.5886, allocations: 3.996 MB / 470.3 MB, free: 8.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04347/0.6321, allocations: 34.83 MB / 0.4933 GB, free: 6.125 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.6322, allocations: 0 / 0.4933 GB, free: 6.125 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.97e-06/0.6322, allocations: 0 / 0.4933 GB, free: 6.125 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.001442/0.6336, allocations: 2.734 kB / 0.4933 GB, free: 6.125 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5087 * Number of variables: 5087 Notification: Performance of Generate backend data structure: time 0.06517/0.6988, allocations: 20.21 MB / 0.513 GB, free: 2.066 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.503e-05/0.6989, allocations: 15.97 kB / 0.513 GB, free: 2.051 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0157/0.7146, allocations: 2.975 MB / 0.516 GB, free: 15.08 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06636/0.781, allocations: 12.34 MB / 0.528 GB, free: 2.848 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.454/1.235, allocations: 11.87 MB / 0.5396 GB, free: 102.2 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002006/1.237, allocations: 1.372 MB / 0.5409 GB, free: 101.6 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009501/1.247, allocations: 1.817 MB / 0.5427 GB, free: 101 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08323/1.33, allocations: 29.92 MB / 0.5719 GB, free: 88.92 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008087/1.331, allocations: 29.02 kB / 0.572 GB, free: 88.91 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006322/1.337, allocations: 0.7541 MB / 0.5727 GB, free: 88.33 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009855/1.338, allocations: 1.016 MB / 0.5737 GB, free: 88.14 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05301/1.391, allocations: 27.84 MB / 0.6009 GB, free: 63.36 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1607/1.552, allocations: 95.66 MB / 0.6943 GB, free: 14.59 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4823/2.034, allocations: 63.39 MB / 0.7562 GB, free: 87.62 MB / 478.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01281/2.047, allocations: 7.513 MB / 0.7635 GB, free: 86.4 MB / 478.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03264/2.08, allocations: 20.7 MB / 0.7838 GB, free: 77.31 MB / 478.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.798e-05/2.08, allocations: 111.9 kB / 0.7839 GB, free: 77.22 MB / 478.2 MB Notification: Performance of pre-optimization done (n=683): time 8.356e-06/2.08, allocations: 3.984 kB / 0.7839 GB, free: 77.22 MB / 478.2 MB Notification: Performance of matching and sorting (n=691): time 0.0964/2.176, allocations: 43.35 MB / 0.8262 GB, free: 55.19 MB / 478.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.204e-05/2.176, allocations: 151.1 kB / 0.8264 GB, free: 55.02 MB / 478.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00977/2.186, allocations: 7.189 MB / 0.8334 GB, free: 47.85 MB / 478.2 MB Notification: Performance of collectPreVariables (initialization): time 0.00133/2.188, allocations: 137.7 kB / 0.8335 GB, free: 47.71 MB / 478.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.003812/2.191, allocations: 7.945 MB / 0.8413 GB, free: 39.72 MB / 478.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.00264/2.194, allocations: 2.349 MB / 0.8436 GB, free: 37.39 MB / 478.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000587/2.195, allocations: 200 kB / 0.8437 GB, free: 37.2 MB / 478.2 MB Notification: Performance of setup shared object (initialization): time 0.0003898/2.195, allocations: 0.7077 MB / 0.8444 GB, free: 36.48 MB / 478.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006329/2.201, allocations: 4.93 MB / 0.8493 GB, free: 31.54 MB / 478.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007894/2.209, allocations: 8.635 MB / 0.8577 GB, free: 21.2 MB / 478.2 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008738/2.218, allocations: 6.707 MB / 0.8642 GB, free: 14.44 MB / 478.2 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-05/2.218, allocations: 40 kB / 0.8643 GB, free: 14.4 MB / 478.2 MB Notification: Performance of matching and sorting (n=1280) (initialization): time 0.0304/2.249, allocations: 16.41 MB / 0.8803 GB, free: 13.83 MB / 494.2 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002299/2.249, allocations: 60 kB / 0.8804 GB, free: 13.77 MB / 494.2 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003242/2.249, allocations: 120.9 kB / 0.8805 GB, free: 13.65 MB / 494.2 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007613/2.257, allocations: 2.595 MB / 0.883 GB, free: 11.03 MB / 494.2 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009175/2.266, allocations: 2.18 MB / 0.8851 GB, free: 8.844 MB / 494.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3261/2.592, allocations: 28.54 MB / 0.913 GB, free: 126.6 MB / 494.2 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009693/2.602, allocations: 0.5485 MB / 0.9135 GB, free: 126.4 MB / 494.2 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002789/2.605, allocations: 482.8 kB / 0.914 GB, free: 126.4 MB / 494.2 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 550 * Number of states: 0 () * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1131): * Single equations (assignments): 1118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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: 8 {(1,100.0%) 1,(18,41.7%) 100,(1,100.0%) 5,(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.0144/2.619, allocations: 6.826 MB / 0.9207 GB, free: 123.3 MB / 494.2 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001907/2.621, allocations: 0.7813 MB / 0.9214 GB, free: 123.3 MB / 494.2 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02036/2.642, allocations: 13.17 MB / 0.9343 GB, free: 117.8 MB / 494.2 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01212/2.654, allocations: 8.27 MB / 0.9424 GB, free: 114.5 MB / 494.2 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.469e-05/2.654, allocations: 26.84 kB / 0.9424 GB, free: 114.5 MB / 494.2 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001065/2.654, allocations: 34.2 kB / 0.9424 GB, free: 114.5 MB / 494.2 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05203/2.706, allocations: 28.15 MB / 0.9699 GB, free: 103 MB / 494.2 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.15e-05/2.706, allocations: 3.25 kB / 0.9699 GB, free: 103 MB / 494.2 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004791/2.711, allocations: 1.113 MB / 0.971 GB, free: 102.9 MB / 494.2 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005994/2.717, allocations: 2.637 MB / 0.9736 GB, free: 102.1 MB / 494.2 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001254/2.718, allocations: 151.2 kB / 0.9737 GB, free: 102 MB / 494.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03042/2.749, allocations: 32.96 MB / 1.006 GB, free: 69.67 MB / 494.2 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/2.749, allocations: 13.12 kB / 1.006 GB, free: 69.66 MB / 494.2 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04176/2.79, allocations: 18.88 MB / 1.024 GB, free: 50.92 MB / 494.2 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00695/2.797, allocations: 1.787 MB / 1.026 GB, free: 49.22 MB / 494.2 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003543/2.801, allocations: 124 kB / 1.026 GB, free: 49.1 MB / 494.2 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007058/2.808, allocations: 415.6 kB / 1.027 GB, free: 48.69 MB / 494.2 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002445/2.811, allocations: 0.5335 MB / 1.027 GB, free: 48.16 MB / 494.2 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001475/2.812, allocations: 196 kB / 1.027 GB, free: 47.96 MB / 494.2 MB Notification: Performance of sorting global known variables: time 0.01065/2.823, allocations: 4.809 MB / 1.032 GB, free: 43.19 MB / 494.2 MB Notification: Performance of sort global known variables: time 5.21e-07/2.823, allocations: 0 / 1.032 GB, free: 43.19 MB / 494.2 MB Notification: Performance of remove unused functions: time 0.01607/2.839, allocations: 3.087 MB / 1.035 GB, free: 40.11 MB / 494.2 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.inertiaRotor.w,ims.stator.zeroInductor.i0,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.rotor.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,quadraticLoadTorque.phi,imsQS.inertiaRotor.w,imsQS.rotor.strayReluctance.port_p.reference.gamma,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.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 (563): * Single equations (assignments): 548 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(18,41.7%) 100} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0339/2.873, allocations: 19.73 MB / 1.054 GB, free: 20.11 MB / 494.2 MB Notification: Performance of simCode: created initialization part: time 0.02313/2.896, allocations: 13.55 MB / 1.068 GB, free: 6.391 MB / 494.2 MB Notification: Performance of simCode: created event and clocks part: time 1.231e-05/2.896, allocations: 0 / 1.068 GB, free: 6.391 MB / 494.2 MB Notification: Performance of simCode: created simulation system equations: time 0.2511/3.147, allocations: 7.616 MB / 1.075 GB, free: 148.4 MB / 494.2 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01344/3.161, allocations: 2.064 MB / 1.077 GB, free: 148.3 MB / 494.2 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2337/3.394, allocations: 102.4 MB / 1.177 GB, free: 78.43 MB / 494.2 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02274/3.417, allocations: 11.43 MB / 1.188 GB, free: 66.94 MB / 494.2 MB Notification: Performance of simCode: alias equations: time 0.01256/3.43, allocations: 3.364 MB / 1.191 GB, free: 63.57 MB / 494.2 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01159/3.441, allocations: 6.814 MB / 1.198 GB, free: 56.75 MB / 494.2 MB Notification: Performance of SimCode: time 1.894e-06/3.442, allocations: 0 / 1.198 GB, free: 56.75 MB / 494.2 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5964/4.038, allocations: 239.3 MB / 1.432 GB, free: 14.36 MB / 0.5139 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002346/4.038, allocations: 259 kB / 1.432 GB, free: 14 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.831/11.87, allocations: 3.938 kB / 1.432 GB, free: 14 MB / 0.5139 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat