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.0009402/0.0009403, allocations: 95.94 kB / 16.3 MB, free: 5.992 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.001137/0.001137, allocations: 181.6 kB / 17.2 MB, free: 5.906 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.433/1.433, allocations: 223.2 MB / 241.1 MB, free: 5.473 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002828/0.0002828, allocations: 9.562 kB / 300.8 MB, free: 5.953 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1172, allocations: 50.42 MB / 351.3 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.03956/0.1567, allocations: 36.22 MB / 387.5 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02943/0.1862, allocations: 11.44 MB / 398.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01059/0.1968, allocations: 302.9 kB / 399.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01122/0.2081, allocations: 2.46 MB / 401.7 MB, free: 9.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0184/0.2265, allocations: 4.13 MB / 405.8 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008328/0.2349, allocations: 2.025 MB / 407.8 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02885/0.2637, allocations: 16.54 MB / 424.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.5315/0.7953, allocations: 31.67 MB / 456 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01543/0.8108, allocations: 7.227 MB / 463.3 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01707/0.8279, allocations: 8 MB / 471.3 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006973/0.8349, allocations: 1.209 MB / 472.5 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01112/0.8461, allocations: 1.532 MB / 474 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0104/0.8565, allocations: 3.739 MB / 477.7 MB, free: 56 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01108/0.8676, allocations: 3.966 MB / 481.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04548/0.9131, allocations: 34.83 MB / 0.5044 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.9132, allocations: 0 / 0.5044 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.9132, allocations: 2.188 kB / 0.5044 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.001304/0.9145, allocations: 0 / 0.5044 GB, free: 0.6445 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: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.06337/0.9779, allocations: 19.99 MB / 0.524 GB, free: 14.73 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.9779, allocations: 12.03 kB / 0.524 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01134/0.9893, allocations: 2.953 MB / 0.5268 GB, free: 11.77 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06146/1.051, allocations: 11.15 MB / 0.5377 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03423/1.085, allocations: 12.85 MB / 0.5503 GB, free: 3.992 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001656/1.087, allocations: 1.363 MB / 0.5516 GB, free: 2.645 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008893/1.096, allocations: 1.788 MB / 0.5534 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09377/1.189, allocations: 29.33 MB / 0.582 GB, free: 3.469 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008634/1.19, allocations: 23.75 kB / 0.582 GB, free: 3.445 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01025/1.201, allocations: 0.7507 MB / 0.5827 GB, free: 2.711 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001387/1.202, allocations: 0.9946 MB / 0.5837 GB, free: 1.711 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5629/1.765, allocations: 27.19 MB / 0.6103 GB, free: 114.3 MB / 462.3 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.187/1.952, allocations: 94.28 MB / 0.7023 GB, free: 32.2 MB / 462.3 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0429/1.995, allocations: 51.94 MB / 0.7531 GB, free: 7.363 MB / 494.3 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04323/2.038, allocations: 16.46 MB / 0.7691 GB, free: 7.008 MB / 0.4983 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001146/2.038, allocations: 108.6 kB / 0.7692 GB, free: 6.891 MB / 0.4983 GB Notification: Performance of pre-optimization done (n=697): time 1.149e-05/2.038, allocations: 4 kB / 0.7692 GB, free: 6.887 MB / 0.4983 GB Notification: Performance of matching and sorting (n=705): time 0.3987/2.437, allocations: 39.09 MB / 0.8074 GB, free: 144 MB / 0.4983 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.759e-05/2.437, allocations: 149.2 kB / 0.8076 GB, free: 143.9 MB / 0.4983 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01097/2.448, allocations: 6.997 MB / 0.8144 GB, free: 141.4 MB / 0.4983 GB Notification: Performance of collectPreVariables (initialization): time 0.001457/2.45, allocations: 146.9 kB / 0.8145 GB, free: 141.3 MB / 0.4983 GB Notification: Performance of collectInitialEqns (initialization): time 0.003987/2.454, allocations: 7.771 MB / 0.8221 GB, free: 135.5 MB / 0.4983 GB Notification: Performance of collectInitialBindings (initialization): time 0.003134/2.457, allocations: 2.38 MB / 0.8245 GB, free: 133.7 MB / 0.4983 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009039/2.458, allocations: 194.7 kB / 0.8246 GB, free: 133.5 MB / 0.4983 GB Notification: Performance of setup shared object (initialization): time 0.0005825/2.458, allocations: 0.6995 MB / 0.8253 GB, free: 133 MB / 0.4983 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007616/2.466, allocations: 4.933 MB / 0.8301 GB, free: 131.2 MB / 0.4983 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009863/2.476, allocations: 8.353 MB / 0.8383 GB, free: 124.8 MB / 0.4983 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009606/2.486, allocations: 6.647 MB / 0.8448 GB, free: 121.8 MB / 0.4983 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001037/2.486, allocations: 30.97 kB / 0.8448 GB, free: 121.8 MB / 0.4983 GB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.03228/2.518, allocations: 16.22 MB / 0.8607 GB, free: 110.8 MB / 0.4983 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001934/2.518, allocations: 53.41 kB / 0.8607 GB, free: 110.8 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002507/2.518, allocations: 116.1 kB / 0.8608 GB, free: 110.6 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006392/2.525, allocations: 2.549 MB / 0.8633 GB, free: 108.1 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008659/2.534, allocations: 2.118 MB / 0.8654 GB, free: 106 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03132/2.565, allocations: 29.33 MB / 0.894 GB, free: 75.59 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008997/2.574, allocations: 0.5397 MB / 0.8945 GB, free: 75.05 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002299/2.576, allocations: 463.9 kB / 0.895 GB, free: 74.6 MB / 0.4983 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 507 * 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 (1102): * Single equations (assignments): 1089 * 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.01526/2.592, allocations: 6.761 MB / 0.9016 GB, free: 67.82 MB / 0.4983 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003133/2.595, allocations: 0.764 MB / 0.9023 GB, free: 67.05 MB / 0.4983 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02649/2.621, allocations: 13.31 MB / 0.9153 GB, free: 53.53 MB / 0.4983 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01569/2.637, allocations: 8.353 MB / 0.9235 GB, free: 45.09 MB / 0.4983 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001211/2.637, allocations: 31.95 kB / 0.9235 GB, free: 45.05 MB / 0.4983 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001897/2.637, allocations: 35.86 kB / 0.9236 GB, free: 45.02 MB / 0.4983 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07046/2.708, allocations: 28.35 MB / 0.9512 GB, free: 16.48 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.847e-05/2.708, allocations: 4 kB / 0.9512 GB, free: 16.48 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005909/2.714, allocations: 1.139 MB / 0.9524 GB, free: 15.34 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006788/2.721, allocations: 2.615 MB / 0.9549 GB, free: 12.69 MB / 0.4983 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00154/2.722, allocations: 151.9 kB / 0.9551 GB, free: 12.54 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2791/3.001, allocations: 33.84 MB / 0.9881 GB, free: 121.3 MB / 0.4983 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/3.001, allocations: 7.906 kB / 0.9881 GB, free: 121.3 MB / 0.4983 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02597/3.027, allocations: 19.71 MB / 1.007 GB, free: 112.6 MB / 0.4983 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005177/3.033, allocations: 1.785 MB / 1.009 GB, free: 112 MB / 0.4983 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002427/3.035, allocations: 127.3 kB / 1.009 GB, free: 111.9 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005285/3.04, allocations: 416.8 kB / 1.01 GB, free: 111.8 MB / 0.4983 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001664/3.042, allocations: 0.5333 MB / 1.01 GB, free: 111.7 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006358/3.043, allocations: 198 kB / 1.01 GB, free: 111.6 MB / 0.4983 GB Notification: Performance of sorting global known variables: time 0.007688/3.05, allocations: 4.689 MB / 1.015 GB, free: 109.9 MB / 0.4983 GB Notification: Performance of sort global known variables: time 2.2e-07/3.05, allocations: 0 / 1.015 GB, free: 109.9 MB / 0.4983 GB Notification: Performance of remove unused functions: time 0.01258/3.063, allocations: 3.07 MB / 1.018 GB, free: 109.7 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.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 (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%) 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,(1,100.0%) 1,(18,41.0%) 100} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03088/3.094, allocations: 21.11 MB / 1.039 GB, free: 99.42 MB / 0.4983 GB Notification: Performance of simCode: created initialization part: time 0.02116/3.115, allocations: 13.55 MB / 1.052 GB, free: 87.46 MB / 0.4983 GB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/3.115, allocations: 0 / 1.052 GB, free: 87.46 MB / 0.4983 GB Notification: Performance of simCode: created simulation system equations: time 0.01392/3.129, allocations: 7.689 MB / 1.059 GB, free: 80.56 MB / 0.4983 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01357/3.143, allocations: 1.937 MB / 1.061 GB, free: 79.01 MB / 0.4983 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4348/3.578, allocations: 176.6 MB / 1.234 GB, free: 100.2 MB / 0.5139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02437/3.602, allocations: 11.65 MB / 1.245 GB, free: 95.5 MB / 0.5139 GB Notification: Performance of simCode: alias equations: time 0.01617/3.618, allocations: 3.315 MB / 1.248 GB, free: 94.25 MB / 0.5139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01177/3.63, allocations: 6.812 MB / 1.255 GB, free: 87.95 MB / 0.5139 GB Notification: Performance of SimCode: time 1.442e-06/3.63, allocations: 0 / 1.255 GB, free: 87.95 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.518/4.148, allocations: 237.5 MB / 1.487 GB, free: 35.2 MB / 0.5139 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001655/4.148, allocations: 267.8 kB / 1.487 GB, free: 34.85 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.069/12.22, allocations: 0 / 1.487 GB, free: 34.85 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