Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00155/0.001556, allocations: 184.1 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.041/2.041, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001151/0.001151, allocations: 95.5 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004071/0.0004072, allocations: 11.98 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3359, allocations: 47.56 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase): time 0.03281/0.3687, allocations: 22.24 MB / 396.9 MB, free: 26.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01955/0.3883, allocations: 7.618 MB / 404.5 MB, free: 18.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006221/0.3946, allocations: 155.2 kB / 404.6 MB, free: 18.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006617/0.4013, allocations: 1.473 MB / 406.1 MB, free: 17.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01139/0.4127, allocations: 2.365 MB / 408.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006371/0.4191, allocations: 1.13 MB / 409.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01777/0.4369, allocations: 8.371 MB / 418 MB, free: 5.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01656/0.4535, allocations: 7.272 MB / 425.3 MB, free: 14.08 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009983/0.4636, allocations: 3.928 MB / 429.2 MB, free: 10.14 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01158/0.4752, allocations: 4.704 MB / 433.9 MB, free: 5.414 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003865/0.4791, allocations: 0.6641 MB / 434.5 MB, free: 4.75 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006107/0.4853, allocations: 0.8278 MB / 435.4 MB, free: 3.922 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005706/0.491, allocations: 2.469 MB / 437.8 MB, free: 1.445 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006002/0.4971, allocations: 2.32 MB / 440.2 MB, free: 15.11 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03567/0.5328, allocations: 17.66 MB / 457.8 MB, free: 13.4 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.5329, allocations: 0 / 457.8 MB, free: 13.4 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.547e-06/0.5329, allocations: 0 / 457.8 MB, free: 13.4 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000771/0.5337, allocations: 0 / 457.8 MB, free: 13.4 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.04981/0.5835, allocations: 11.17 MB / 469 MB, free: 2.109 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/0.5836, allocations: 8.031 kB / 469 MB, free: 2.102 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006123/0.5897, allocations: 1.378 MB / 470.4 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0202/0.61, allocations: 2.328 MB / 472.7 MB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02785/0.6379, allocations: 7.228 MB / 479.9 MB, free: 7.051 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001413/0.6394, allocations: 0.7387 MB / 480.7 MB, free: 6.309 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004696/0.6441, allocations: 0.992 MB / 481.7 MB, free: 5.316 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05295/0.6971, allocations: 14.29 MB / 496 MB, free: 6.887 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006179/0.6978, allocations: 15.83 kB / 496 MB, free: 6.871 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003618/0.7014, allocations: 416 kB / 496.4 MB, free: 6.465 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007293/0.7022, allocations: 456.4 kB / 496.8 MB, free: 6.016 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5993/1.302, allocations: 12.5 MB / 0.4974 GB, free: 89.59 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1145/1.416, allocations: 44.3 MB / 0.5406 GB, free: 54.69 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03463/1.451, allocations: 25.05 MB / 0.5651 GB, free: 27.4 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02929/1.48, allocations: 10.02 MB / 0.5749 GB, free: 17.35 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.085e-05/1.48, allocations: 82.08 kB / 0.575 GB, free: 17.26 MB / 378.8 MB Notification: Performance of pre-optimization done (n=447): time 8.225e-06/1.48, allocations: 0 / 0.575 GB, free: 17.26 MB / 378.8 MB Notification: Performance of matching and sorting (n=455): time 0.09571/1.576, allocations: 23.05 MB / 0.5975 GB, free: 9.836 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/1.576, allocations: 98.92 kB / 0.5976 GB, free: 9.727 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01383/1.59, allocations: 5.295 MB / 0.6027 GB, free: 4.461 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009616/1.591, allocations: 101.7 kB / 0.6028 GB, free: 4.355 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004843/1.596, allocations: 4.065 MB / 0.6068 GB, free: 276 kB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002616/1.599, allocations: 1.517 MB / 0.6083 GB, free: 14.77 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005639/1.599, allocations: 100 kB / 0.6084 GB, free: 14.67 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0004859/1.6, allocations: 0.5097 MB / 0.6089 GB, free: 14.15 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007931/1.608, allocations: 2.508 MB / 0.6113 GB, free: 11.63 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009676/1.617, allocations: 3.729 MB / 0.615 GB, free: 7.395 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009507/1.627, allocations: 3.083 MB / 0.618 GB, free: 4.309 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.724e-05/1.627, allocations: 8 kB / 0.618 GB, free: 4.301 MB / 410.8 MB Notification: Performance of matching and sorting (n=650) (initialization): time 0.02551/1.653, allocations: 8.062 MB / 0.6259 GB, free: 12.12 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.114e-05/1.653, allocations: 20 kB / 0.6259 GB, free: 12.11 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.478e-05/1.653, allocations: 40.16 kB / 0.6259 GB, free: 12.07 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006942/1.66, allocations: 1.563 MB / 0.6275 GB, free: 10.46 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008869/1.669, allocations: 1.065 MB / 0.6285 GB, free: 9.391 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04483/1.713, allocations: 27.71 MB / 0.6556 GB, free: 11.83 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006718/1.72, allocations: 231.9 kB / 0.6558 GB, free: 11.61 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001135/1.721, allocations: 200 kB / 0.656 GB, free: 11.41 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 160 * Number of states: 0 () * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,idealCloserM.control[1],idealCloserM.control[2],idealCloserM.control[3],idealCloserM.control[4],idealCloserM.control[5],idealCloser3.control[1],idealCloser3.control[2],idealCloser3.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (559): * Single equations (assignments): 543 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 14 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(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: 14 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(4,68.8%) 25,(2,100.0%) 6,(2,100.0%) 6,(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.01008/1.731, allocations: 3.313 MB / 0.6592 GB, free: 8.082 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001818/1.733, allocations: 0.5789 MB / 0.6598 GB, free: 7.496 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3301/2.063, allocations: 8.255 MB / 0.6678 GB, free: 154.4 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.232e-05/2.064, allocations: 46.06 kB / 0.6679 GB, free: 154.4 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.476e-05/2.064, allocations: 31.38 kB / 0.6679 GB, free: 154.4 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001197/2.064, allocations: 22.64 kB / 0.6679 GB, free: 154.4 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05004/2.114, allocations: 17.61 MB / 0.6851 GB, free: 148.8 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.496e-05/2.114, allocations: 4.906 kB / 0.6851 GB, free: 148.8 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004949/2.119, allocations: 0.5081 MB / 0.6856 GB, free: 148.8 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00953/2.128, allocations: 2.337 MB / 0.6879 GB, free: 148 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008771/2.129, allocations: 104.6 kB / 0.688 GB, free: 148 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05491/2.184, allocations: 35.79 MB / 0.723 GB, free: 119 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.213e-06/2.184, allocations: 8 kB / 0.723 GB, free: 119 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02977/2.214, allocations: 12.38 MB / 0.7351 GB, free: 106.7 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004431/2.219, allocations: 1.216 MB / 0.7363 GB, free: 105.7 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001974/2.221, allocations: 92 kB / 0.7363 GB, free: 105.6 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00598/2.227, allocations: 255.8 kB / 0.7366 GB, free: 105.4 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002005/2.229, allocations: 451.2 kB / 0.737 GB, free: 104.9 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005717/2.229, allocations: 120 kB / 0.7371 GB, free: 104.8 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.008714/2.238, allocations: 3.596 MB / 0.7406 GB, free: 101.3 MB / 458.8 MB Notification: Performance of sort global known variables: time 4.21e-07/2.238, allocations: 0 / 0.7406 GB, free: 101.3 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.0102/2.248, allocations: 1.885 MB / 0.7425 GB, free: 99.37 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 14 (aimsM.inertiaRotor.w,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aims3.inertiaRotor.w,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.zeroInductor.i0,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,idealCloserM.control[1],idealCloserM.control[2],idealCloserM.control[3],idealCloserM.control[4],idealCloserM.control[5],idealCloser3.control[1],idealCloser3.control[2],idealCloser3.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (269): * Single equations (assignments): 256 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(11,49.6%) 56,(1,100.0%) 1,(6,72.2%) 46,(2,100.0%) 12,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 5,(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.0314/2.28, allocations: 13.96 MB / 0.7561 GB, free: 85.42 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01947/2.299, allocations: 8.244 MB / 0.7642 GB, free: 76.96 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.267e-05/2.299, allocations: 0 / 0.7642 GB, free: 76.96 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01431/2.314, allocations: 5.969 MB / 0.77 GB, free: 70.84 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01116/2.325, allocations: 1.574 MB / 0.7715 GB, free: 69.28 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4972/2.822, allocations: 85.03 MB / 0.8546 GB, free: 142 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01165/2.834, allocations: 6.405 MB / 0.8608 GB, free: 140.1 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008566/2.842, allocations: 3.956 MB / 0.8647 GB, free: 136.7 MB / 458.8 MB Notification: Performance of SimCode: time 1.934e-06/2.842, allocations: 0 / 0.8647 GB, free: 136.7 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.111/11.95, allocations: 0.877 GB / 1.742 GB, free: 135.6 MB / 490.8 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat