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.0011/0.0011, allocations: 94.36 kB / 16.94 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.001197/0.001197, allocations: 184.1 kB / 17.82 MB, free: 5.641 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.444/1.444, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004856/0.0004857, allocations: 12 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08409/0.08458, allocations: 47.57 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.03502/0.1196, allocations: 36.25 MB / 364.7 MB, free: 15.62 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02384/0.1435, allocations: 11.38 MB / 376.1 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007089/0.1506, allocations: 278.9 kB / 376.4 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00875/0.1594, allocations: 2.46 MB / 378.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1774/0.3369, allocations: 4.15 MB / 383 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007934/0.3448, allocations: 2.03 MB / 385 MB, free: 11.01 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02474/0.3696, allocations: 16.62 MB / 401.6 MB, free: 10.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05072/0.4203, allocations: 31.66 MB / 433.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01459/0.435, allocations: 7.278 MB / 440.5 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01602/0.451, allocations: 8.081 MB / 448.6 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004921/0.456, allocations: 1.219 MB / 449.8 MB, free: 1.234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007927/0.464, allocations: 1.523 MB / 451.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006331/0.4703, allocations: 3.796 MB / 455.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007826/0.4782, allocations: 3.996 MB / 459.2 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03631/0.5145, allocations: 34.74 MB / 493.9 MB, free: 5.297 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.5146, allocations: 0 / 493.9 MB, free: 5.297 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.5146, allocations: 4 kB / 493.9 MB, free: 5.293 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.001013/0.5156, allocations: 0 / 493.9 MB, free: 5.293 MB / 382.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.05414/0.5698, allocations: 20.13 MB / 0.502 GB, free: 1.176 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.5698, allocations: 8.031 kB / 0.502 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01121/0.581, allocations: 2.972 MB / 0.5049 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06575/0.6468, allocations: 12.14 MB / 0.5167 GB, free: 2.008 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02759/0.6744, allocations: 11.86 MB / 0.5283 GB, free: 6.098 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001409/0.6759, allocations: 1.38 MB / 0.5297 GB, free: 4.723 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006626/0.6825, allocations: 1.801 MB / 0.5314 GB, free: 2.922 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3651/1.048, allocations: 29.77 MB / 0.5605 GB, free: 94.22 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005107/1.048, allocations: 17.77 kB / 0.5605 GB, free: 94.22 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003757/1.052, allocations: 0.7471 MB / 0.5613 GB, free: 93.64 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007644/1.053, allocations: 1.023 MB / 0.5623 GB, free: 93.53 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04863/1.101, allocations: 27.86 MB / 0.5895 GB, free: 78.03 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.142/1.243, allocations: 95.63 MB / 0.6829 GB, free: 13.45 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3675/1.611, allocations: 63.4 MB / 0.7448 GB, free: 85.25 MB / 478.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03608/1.647, allocations: 20.2 MB / 0.7645 GB, free: 79.19 MB / 478.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.609e-05/1.647, allocations: 108.1 kB / 0.7646 GB, free: 79.1 MB / 478.2 MB Notification: Performance of pre-optimization done (n=697): time 8.075e-06/1.647, allocations: 0 / 0.7646 GB, free: 79.1 MB / 478.2 MB Notification: Performance of matching and sorting (n=705): time 0.08283/1.73, allocations: 39.26 MB / 0.8029 GB, free: 62.48 MB / 478.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.417e-05/1.73, allocations: 149.3 kB / 0.8031 GB, free: 62.38 MB / 478.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01043/1.74, allocations: 7.146 MB / 0.8101 GB, free: 59.79 MB / 478.2 MB Notification: Performance of collectPreVariables (initialization): time 0.001191/1.742, allocations: 136.4 kB / 0.8102 GB, free: 59.67 MB / 478.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.005226/1.747, allocations: 7.914 MB / 0.8179 GB, free: 53.74 MB / 478.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.003382/1.75, allocations: 2.395 MB / 0.8203 GB, free: 51.84 MB / 478.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001154/1.752, allocations: 204 kB / 0.8205 GB, free: 51.68 MB / 478.2 MB Notification: Performance of setup shared object (initialization): time 0.0006715/1.752, allocations: 0.7134 MB / 0.8211 GB, free: 51.07 MB / 478.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008511/1.761, allocations: 4.987 MB / 0.826 GB, free: 48.39 MB / 478.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0103/1.771, allocations: 8.655 MB / 0.8345 GB, free: 40.73 MB / 478.2 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008951/1.78, allocations: 6.766 MB / 0.8411 GB, free: 34.18 MB / 478.2 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.307e-05/1.78, allocations: 32 kB / 0.8411 GB, free: 34.15 MB / 478.2 MB Notification: Performance of matching and sorting (n=1290) (initialization): time 0.02558/1.806, allocations: 16.53 MB / 0.8573 GB, free: 17.46 MB / 478.2 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001246/1.806, allocations: 56 kB / 0.8573 GB, free: 17.41 MB / 478.2 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002367/1.806, allocations: 124 kB / 0.8574 GB, free: 17.29 MB / 478.2 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006291/1.813, allocations: 2.608 MB / 0.86 GB, free: 14.67 MB / 478.2 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008896/1.821, allocations: 2.199 MB / 0.8621 GB, free: 12.46 MB / 478.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03547/1.857, allocations: 29.32 MB / 0.8908 GB, free: 14.09 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009214/1.866, allocations: 0.5386 MB / 0.8913 GB, free: 13.55 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002406/1.869, allocations: 483.9 kB / 0.8917 GB, free: 13.08 MB / 0.4983 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 546 * 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 (1141): * Single equations (assignments): 1128 * 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,38.9%) 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.01558/1.884, allocations: 6.831 MB / 0.8984 GB, free: 6.23 MB / 0.4983 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002058/1.886, allocations: 0.7833 MB / 0.8992 GB, free: 5.438 MB / 0.4983 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2239/2.11, allocations: 13.32 MB / 0.9122 GB, free: 151.8 MB / 0.4983 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01308/2.123, allocations: 8.367 MB / 0.9204 GB, free: 149.6 MB / 0.4983 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.891e-05/2.124, allocations: 29.73 kB / 0.9204 GB, free: 149.6 MB / 0.4983 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.203e-05/2.124, allocations: 35.5 kB / 0.9204 GB, free: 149.6 MB / 0.4983 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04581/2.17, allocations: 28.43 MB / 0.9482 GB, free: 138 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.218e-05/2.17, allocations: 7.641 kB / 0.9482 GB, free: 138 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005054/2.175, allocations: 1.14 MB / 0.9493 GB, free: 137.9 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00615/2.181, allocations: 2.651 MB / 0.9519 GB, free: 137.2 MB / 0.4983 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001119/2.182, allocations: 155.2 kB / 0.952 GB, free: 137.1 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03076/2.213, allocations: 33.83 MB / 0.9851 GB, free: 113.7 MB / 0.4983 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/2.213, allocations: 3.938 kB / 0.9851 GB, free: 113.7 MB / 0.4983 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02726/2.24, allocations: 19.74 MB / 1.004 GB, free: 98.94 MB / 0.4983 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005348/2.245, allocations: 1.792 MB / 1.006 GB, free: 97.54 MB / 0.4983 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001549/2.247, allocations: 136 kB / 1.006 GB, free: 97.41 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004106/2.251, allocations: 407 kB / 1.007 GB, free: 97.02 MB / 0.4983 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001357/2.252, allocations: 0.5423 MB / 1.007 GB, free: 96.48 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005443/2.253, allocations: 196 kB / 1.007 GB, free: 96.29 MB / 0.4983 GB Notification: Performance of sorting global known variables: time 0.006871/2.26, allocations: 4.773 MB / 1.012 GB, free: 91.54 MB / 0.4983 GB Notification: Performance of sort global known variables: time 1.172e-06/2.26, allocations: 0 / 1.012 GB, free: 91.54 MB / 0.4983 GB Notification: Performance of remove unused functions: time 0.01418/2.274, allocations: 3.103 MB / 1.015 GB, free: 88.45 MB / 0.4983 GB 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 (577): * Single equations (assignments): 562 * 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%) 5,(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,(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.02669/2.301, allocations: 21.13 MB / 1.036 GB, free: 67.48 MB / 0.4983 GB Notification: Performance of simCode: created initialization part: time 0.01978/2.321, allocations: 13.71 MB / 1.049 GB, free: 53.66 MB / 0.4983 GB Notification: Performance of simCode: created event and clocks part: time 1.428e-05/2.321, allocations: 1.312 kB / 1.049 GB, free: 53.66 MB / 0.4983 GB Notification: Performance of simCode: created simulation system equations: time 0.0113/2.332, allocations: 7.714 MB / 1.057 GB, free: 45.83 MB / 0.4983 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008883/2.341, allocations: 1.946 MB / 1.058 GB, free: 43.89 MB / 0.4983 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.444/2.785, allocations: 184 MB / 1.238 GB, free: 44.19 MB / 0.5139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02239/2.807, allocations: 11.73 MB / 1.25 GB, free: 38.68 MB / 0.5139 GB Notification: Performance of simCode: alias equations: time 0.01077/2.818, allocations: 3.373 MB / 1.253 GB, free: 35.76 MB / 0.5139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01164/2.83, allocations: 6.92 MB / 1.26 GB, free: 28.84 MB / 0.5139 GB Notification: Performance of SimCode: time 9.22e-07/2.83, allocations: 0 / 1.26 GB, free: 28.84 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7976/3.628, allocations: 239.5 MB / 1.494 GB, free: 99.4 MB / 0.5139 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001547/3.628, allocations: 249.5 kB / 1.494 GB, free: 99.07 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.299/10.93, allocations: 3.375 kB / 1.494 GB, free: 99.07 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