Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_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.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_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.000955/0.0009551, allocations: 93.42 kB / 16.95 MB, free: 6.891 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.0008329/0.0008329, allocations: 186.9 kB / 17.84 MB, free: 6.137 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.484/1.484, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004572/0.0004572, allocations: 12 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1041, allocations: 47.56 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02313/0.1272, allocations: 20.85 MB / 349.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0152/0.1425, allocations: 6.538 MB / 355.8 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004311/0.1469, allocations: 127.4 kB / 356 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004279/0.1512, allocations: 1.192 MB / 357.1 MB, free: 7.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007681/0.1589, allocations: 2.016 MB / 359.2 MB, free: 5.152 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003661/0.1625, allocations: 0.928 MB / 360.1 MB, free: 4.223 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01325/0.1758, allocations: 9.053 MB / 369.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007495/0.1833, allocations: 4.853 MB / 374 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005861/0.1893, allocations: 2.868 MB / 376.9 MB, free: 3.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2154/0.4047, allocations: 3.745 MB / 380.6 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002872/0.4077, allocations: 464.7 kB / 381.1 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00445/0.4121, allocations: 0.6878 MB / 381.8 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003484/0.4156, allocations: 1.945 MB / 383.7 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004198/0.4199, allocations: 1.574 MB / 385.3 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01492/0.4348, allocations: 11.76 MB / 397 MB, free: 11.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.4348, allocations: 0 / 397 MB, free: 11.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.4349, allocations: 1.719 kB / 397 MB, free: 11.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000521/0.4354, allocations: 0 / 397 MB, free: 11.82 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.02307/0.4585, allocations: 7.556 MB / 404.6 MB, free: 7.801 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.4585, allocations: 9.781 kB / 404.6 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003816/0.4623, allocations: 0.9242 MB / 405.5 MB, free: 7.559 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007064/0.4694, allocations: 1.31 MB / 406.8 MB, free: 6.984 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01196/0.4814, allocations: 4.883 MB / 411.7 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005511/0.482, allocations: 0.5021 MB / 412.2 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003197/0.4852, allocations: 0.6655 MB / 412.9 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02706/0.5123, allocations: 9.403 MB / 422.3 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003886/0.5127, allocations: 11.34 kB / 422.3 MB, free: 3.141 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00279/0.5155, allocations: 277.3 kB / 422.6 MB, free: 3.141 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002947/0.5158, allocations: 306.2 kB / 422.9 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02148/0.5373, allocations: 8.039 MB / 430.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07063/0.608, allocations: 29.55 MB / 460.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01345/0.6215, allocations: 11.95 MB / 472.4 MB, free: 2.352 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006877/0.6284, allocations: 3.393 MB / 475.8 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02011/0.6486, allocations: 8.012 MB / 483.8 MB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.839e-05/0.6487, allocations: 64.97 kB / 483.9 MB, free: 6.871 MB / 382.1 MB Notification: Performance of pre-optimization done (n=305): time 7.234e-06/0.6487, allocations: 0 / 483.9 MB, free: 6.871 MB / 382.1 MB Notification: Performance of matching and sorting (n=324): time 0.03671/0.6855, allocations: 16.01 MB / 499.9 MB, free: 6.414 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.21e-05/0.6856, allocations: 81.95 kB / 500 MB, free: 6.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009368/0.695, allocations: 3.969 MB / 0.4921 GB, free: 2.328 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008212/0.6958, allocations: 81.7 kB / 0.4922 GB, free: 2.242 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002942/0.6988, allocations: 3.085 MB / 0.4952 GB, free: 15.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001583/0.7004, allocations: 1.095 MB / 0.4963 GB, free: 14.05 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006187/0.701, allocations: 80 kB / 0.4964 GB, free: 13.98 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0005298/0.7016, allocations: 458.1 kB / 0.4968 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003664/0.7052, allocations: 1.858 MB / 0.4986 GB, free: 11.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004433/0.7097, allocations: 2.834 MB / 0.5014 GB, free: 8.449 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004721/0.7144, allocations: 2.29 MB / 0.5036 GB, free: 6.172 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.209e-05/0.7145, allocations: 8 kB / 0.5036 GB, free: 6.164 MB / 414.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.01406/0.7286, allocations: 6.39 MB / 0.5099 GB, free: 15.86 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.454e-05/0.7287, allocations: 16 kB / 0.5099 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.813e-05/0.7287, allocations: 28 kB / 0.5099 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003034/0.7318, allocations: 1.275 MB / 0.5112 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003354/0.7352, allocations: 0.8181 MB / 0.512 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02047/0.7557, allocations: 20.73 MB / 0.5322 GB, free: 7.641 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00456/0.7603, allocations: 211.8 kB / 0.5324 GB, free: 7.434 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001092/0.7614, allocations: 148 kB / 0.5325 GB, free: 7.289 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * 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 (424): * Single equations (assignments): 410 * 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%) 8,(2,100.0%) 14,(1,100.0%) 1,(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.007224/0.7686, allocations: 2.186 MB / 0.5347 GB, free: 5.145 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00221/0.7709, allocations: 450.6 kB / 0.5351 GB, free: 4.699 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2246/0.9955, allocations: 6.049 MB / 0.541 GB, free: 152.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.755e-05/0.9956, allocations: 30.25 kB / 0.541 GB, free: 152.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.105e-05/0.9957, allocations: 15.47 kB / 0.5411 GB, free: 152.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.731e-05/0.9958, allocations: 21.09 kB / 0.5411 GB, free: 152.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02612/1.022, allocations: 12.34 MB / 0.5531 GB, free: 149.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.539e-05/1.022, allocations: 9.109 kB / 0.5531 GB, free: 149.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001911/1.024, allocations: 466.4 kB / 0.5536 GB, free: 149.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00363/1.028, allocations: 1.606 MB / 0.5551 GB, free: 149.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004581/1.028, allocations: 80.36 kB / 0.5552 GB, free: 149.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02419/1.052, allocations: 30.18 MB / 0.5847 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/1.052, allocations: 7.906 kB / 0.5847 GB, free: 124.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0126/1.065, allocations: 8.637 MB / 0.5931 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002812/1.068, allocations: 0.9152 MB / 0.594 GB, free: 118.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001045/1.069, allocations: 68 kB / 0.5941 GB, free: 118.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002216/1.071, allocations: 198.9 kB / 0.5943 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006661/1.072, allocations: 276 kB / 0.5946 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002203/1.072, allocations: 95.97 kB / 0.5946 GB, free: 117.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004452/1.076, allocations: 2.682 MB / 0.5973 GB, free: 115 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.81e-07/1.076, allocations: 0 / 0.5973 GB, free: 115 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006036/1.082, allocations: 1.331 MB / 0.5986 GB, free: 113.7 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 (231): * Single equations (assignments): 214 * 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,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01173/1.094, allocations: 9.349 MB / 0.6077 GB, free: 104.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007849/1.102, allocations: 6.322 MB / 0.6139 GB, free: 97.83 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/1.102, allocations: 4 kB / 0.6139 GB, free: 97.83 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006369/1.108, allocations: 4.786 MB / 0.6185 GB, free: 92.82 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0101/1.119, allocations: 1.279 MB / 0.6198 GB, free: 91.55 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1093/1.228, allocations: 43.08 MB / 0.6619 GB, free: 45.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008557/1.237, allocations: 4.485 MB / 0.6662 GB, free: 41.36 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005279/1.242, allocations: 1.05 MB / 0.6673 GB, free: 40.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005461/1.247, allocations: 2.655 MB / 0.6699 GB, free: 37.64 MB / 446.1 MB Notification: Performance of SimCode: time 1.483e-06/1.247, allocations: 0 / 0.6699 GB, free: 37.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4227/1.67, allocations: 117 MB / 0.7841 GB, free: 85.28 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001809/1.67, allocations: 235.9 kB / 0.7843 GB, free: 85.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.91/6.581, allocations: 0 / 0.7843 GB, free: 85.04 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat