Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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.0008921/0.0008921, allocations: 88.52 kB / 16.31 MB, free: 5.516 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.001061/0.001061, allocations: 182.1 kB / 17.21 MB, free: 5.453 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.403/1.403, allocations: 223.2 MB / 241.2 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002683/0.0002683, allocations: 12 kB / 300.9 MB, free: 6.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1153, allocations: 50.41 MB / 351.4 MB, free: 3.871 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.2937/0.4091, allocations: 39.57 MB / 390.9 MB, free: 6.086 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02968/0.4388, allocations: 10.98 MB / 401.9 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01303/0.4519, allocations: 323.2 kB / 402.2 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01282/0.4647, allocations: 2.232 MB / 404.5 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02055/0.4853, allocations: 3.992 MB / 408.5 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009199/0.4945, allocations: 1.979 MB / 410.4 MB, free: 8 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03587/0.5304, allocations: 23.1 MB / 433.5 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07144/0.6019, allocations: 31.97 MB / 465.5 MB, free: 3.543 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01837/0.6203, allocations: 7.763 MB / 473.3 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01907/0.6394, allocations: 8.829 MB / 482.1 MB, free: 2.891 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005855/0.6453, allocations: 1.215 MB / 483.3 MB, free: 1.676 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01101/0.6563, allocations: 1.589 MB / 484.9 MB, free: 88 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009678/0.666, allocations: 3.87 MB / 488.8 MB, free: 12.2 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01359/0.6797, allocations: 3.965 MB / 492.7 MB, free: 8.219 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04265/0.7223, allocations: 34.92 MB / 0.5153 GB, free: 5.203 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.7224, allocations: 0 / 0.5153 GB, free: 5.203 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.7224, allocations: 0 / 0.5153 GB, free: 5.203 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001359/0.7238, allocations: 0 / 0.5153 GB, free: 5.203 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.5713/1.295, allocations: 20.07 MB / 0.5349 GB, free: 105.8 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/1.295, allocations: 9.75 kB / 0.5349 GB, free: 105.8 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01471/1.31, allocations: 2.95 MB / 0.5378 GB, free: 103.9 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06097/1.371, allocations: 11.36 MB / 0.5489 GB, free: 97.4 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02951/1.4, allocations: 12.87 MB / 0.5614 GB, free: 84.54 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001349/1.402, allocations: 1.36 MB / 0.5628 GB, free: 83.19 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009047/1.411, allocations: 1.8 MB / 0.5645 GB, free: 81.41 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08441/1.495, allocations: 29.46 MB / 0.5933 GB, free: 51.86 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000897/1.496, allocations: 27.75 kB / 0.5933 GB, free: 51.83 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007773/1.504, allocations: 0.7493 MB / 0.5941 GB, free: 51.09 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00086/1.505, allocations: 0.9869 MB / 0.595 GB, free: 50.1 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05902/1.564, allocations: 27.18 MB / 0.6216 GB, free: 22.88 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.704/2.268, allocations: 94.3 MB / 0.7136 GB, free: 119.9 MB / 494.3 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03526/2.303, allocations: 51.95 MB / 0.7644 GB, free: 78.96 MB / 494.3 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01079/2.314, allocations: 7.336 MB / 0.7715 GB, free: 78.86 MB / 494.3 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0359/2.35, allocations: 20.21 MB / 0.7913 GB, free: 75.03 MB / 494.3 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001026/2.35, allocations: 114.6 kB / 0.7914 GB, free: 74.94 MB / 494.3 MB Notification: Performance of pre-optimization done (n=683): time 1.372e-05/2.35, allocations: 0 / 0.7914 GB, free: 74.94 MB / 494.3 MB Notification: Performance of matching and sorting (n=691): time 0.1085/2.459, allocations: 43.05 MB / 0.8334 GB, free: 42.55 MB / 494.3 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/2.459, allocations: 147.1 kB / 0.8336 GB, free: 42.39 MB / 494.3 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01356/2.472, allocations: 7.042 MB / 0.8404 GB, free: 35.36 MB / 494.3 MB Notification: Performance of collectPreVariables (initialization): time 0.00138/2.474, allocations: 137.7 kB / 0.8406 GB, free: 35.22 MB / 494.3 MB Notification: Performance of collectInitialEqns (initialization): time 0.004428/2.478, allocations: 7.793 MB / 0.8482 GB, free: 27.38 MB / 494.3 MB Notification: Performance of collectInitialBindings (initialization): time 0.002833/2.481, allocations: 2.346 MB / 0.8505 GB, free: 25.05 MB / 494.3 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00171/2.483, allocations: 196 kB / 0.8507 GB, free: 24.86 MB / 494.3 MB Notification: Performance of setup shared object (initialization): time 0.0008967/2.484, allocations: 0.6992 MB / 0.8513 GB, free: 24.16 MB / 494.3 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008664/2.492, allocations: 4.871 MB / 0.8561 GB, free: 19.28 MB / 494.3 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01175/2.504, allocations: 8.345 MB / 0.8643 GB, free: 9.336 MB / 494.3 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01106/2.515, allocations: 6.594 MB / 0.8707 GB, free: 2.695 MB / 494.3 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001483/2.516, allocations: 32 kB / 0.8707 GB, free: 2.664 MB / 494.3 MB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.04122/2.557, allocations: 16.1 MB / 0.8864 GB, free: 2.402 MB / 0.4983 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002286/2.557, allocations: 52 kB / 0.8865 GB, free: 2.352 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003069/2.557, allocations: 112 kB / 0.8866 GB, free: 2.242 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008266/2.566, allocations: 2.575 MB / 0.8891 GB, free: 15.64 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01057/2.576, allocations: 2.102 MB / 0.8912 GB, free: 13.53 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3194/2.896, allocations: 28.53 MB / 0.919 GB, free: 157.5 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008929/2.905, allocations: 0.5358 MB / 0.9196 GB, free: 157.3 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002272/2.907, allocations: 462.8 kB / 0.92 GB, free: 157.2 MB / 0.5139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 511 * 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 (1092): * Single equations (assignments): 1079 * 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.01295/2.92, allocations: 6.763 MB / 0.9266 GB, free: 154.2 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001631/2.922, allocations: 0.7616 MB / 0.9273 GB, free: 154.2 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02121/2.943, allocations: 13.16 MB / 0.9402 GB, free: 148.7 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01549/2.958, allocations: 8.269 MB / 0.9483 GB, free: 145.4 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001024/2.959, allocations: 26.62 kB / 0.9483 GB, free: 145.4 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001424/2.959, allocations: 35.06 kB / 0.9483 GB, free: 145.4 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04852/3.007, allocations: 28.06 MB / 0.9757 GB, free: 130.6 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.362e-05/3.007, allocations: 8.781 kB / 0.9757 GB, free: 130.6 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004638/3.012, allocations: 1.107 MB / 0.9768 GB, free: 129.5 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005912/3.018, allocations: 2.633 MB / 0.9794 GB, free: 126.8 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001627/3.02, allocations: 154 kB / 0.9795 GB, free: 126.7 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02833/3.048, allocations: 32.94 MB / 1.012 GB, free: 92.71 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/3.048, allocations: 8.016 kB / 1.012 GB, free: 92.7 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02718/3.075, allocations: 18.87 MB / 1.03 GB, free: 73.96 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004722/3.08, allocations: 1.768 MB / 1.032 GB, free: 72.25 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002057/3.082, allocations: 132 kB / 1.032 GB, free: 72.12 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004457/3.086, allocations: 411.6 kB / 1.032 GB, free: 71.72 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001381/3.088, allocations: 0.5297 MB / 1.033 GB, free: 71.19 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005375/3.088, allocations: 196 kB / 1.033 GB, free: 71 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 0.007641/3.096, allocations: 4.727 MB / 1.038 GB, free: 66.3 MB / 0.5139 GB Notification: Performance of sort global known variables: time 5.2e-07/3.096, allocations: 0 / 1.038 GB, free: 66.3 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.01294/3.109, allocations: 3.056 MB / 1.041 GB, free: 63.25 MB / 0.5139 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.stray.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.02829/3.137, allocations: 19.71 MB / 1.06 GB, free: 43.27 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.0205/3.158, allocations: 13.4 MB / 1.073 GB, free: 29.7 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/3.158, allocations: 4.062 kB / 1.073 GB, free: 29.7 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.01534/3.173, allocations: 7.588 MB / 1.08 GB, free: 21.95 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01839/3.192, allocations: 2.053 MB / 1.082 GB, free: 19.93 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4406/3.632, allocations: 100.8 MB / 1.181 GB, free: 109.9 MB / 0.5139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02047/3.653, allocations: 11.36 MB / 1.192 GB, free: 98.56 MB / 0.5139 GB Notification: Performance of simCode: alias equations: time 0.0111/3.664, allocations: 3.286 MB / 1.195 GB, free: 95.27 MB / 0.5139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01005/3.674, allocations: 6.814 MB / 1.202 GB, free: 88.46 MB / 0.5139 GB Notification: Performance of SimCode: time 1.092e-06/3.674, allocations: 0 / 1.202 GB, free: 88.46 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5675/4.242, allocations: 237.4 MB / 1.434 GB, free: 17.27 MB / 0.5139 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001598/4.242, allocations: 259.9 kB / 1.434 GB, free: 16.92 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.295/12.54, allocations: 3.562 kB / 1.434 GB, free: 16.92 MB / 0.5139 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat