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/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,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/Complex 3.2.3+maint.om/package.mo): time 0.0009513/0.0009514, allocations: 172.5 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.351/1.351, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.000895/0.0008951, allocations: 86.69 kB / 268 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.46e-05/2.462e-05, allocations: 0 / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08492/0.08496, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3408/0.4259, allocations: 128.8 MB / 498.9 MB, free: 13.45 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/0.4261, allocations: 83.39 kB / 499 MB, free: 13.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5426/0.9688, allocations: 150.3 MB / 0.6341 GB, free: 49.95 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.9688, allocations: 0 / 0.6341 GB, free: 49.95 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005017/0.9693, allocations: 183.7 kB / 0.6342 GB, free: 49.77 MB / 410.7 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.01818/0.9875, allocations: 6.567 MB / 0.6406 GB, free: 43.13 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.9875, allocations: 12.03 kB / 0.6407 GB, free: 43.12 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003356/0.9909, allocations: 0.9216 MB / 0.6416 GB, free: 42.19 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006687/0.9976, allocations: 1.24 MB / 0.6428 GB, free: 40.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01439/1.012, allocations: 6.234 MB / 0.6489 GB, free: 34.63 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005048/1.013, allocations: 0.4977 MB / 0.6493 GB, free: 34.13 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002087/1.015, allocations: 0.6639 MB / 0.65 GB, free: 33.47 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01623/1.031, allocations: 9.178 MB / 0.6589 GB, free: 23.99 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001371/1.031, allocations: 15.88 kB / 0.659 GB, free: 23.98 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006261/1.032, allocations: 288 kB / 0.6592 GB, free: 23.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001728/1.032, allocations: 301.4 kB / 0.6595 GB, free: 23.4 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01298/1.045, allocations: 7.441 MB / 0.6668 GB, free: 15.95 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05069/1.096, allocations: 29.47 MB / 0.6956 GB, free: 1.789 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4418/1.537, allocations: 11.76 MB / 0.7071 GB, free: 57.12 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006072/1.544, allocations: 3.275 MB / 0.7102 GB, free: 57.06 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01239/1.556, allocations: 6.847 MB / 0.7169 GB, free: 56.38 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.573e-05/1.556, allocations: 70.72 kB / 0.717 GB, free: 56.34 MB / 426.8 MB Notification: Performance of pre-optimization done (n=306): time 4.468e-06/1.556, allocations: 0 / 0.717 GB, free: 56.34 MB / 426.8 MB Notification: Performance of matching and sorting (n=325): time 0.0231/1.579, allocations: 11.93 MB / 0.7287 GB, free: 54.62 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/1.579, allocations: 88.72 kB / 0.7287 GB, free: 54.56 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005523/1.585, allocations: 3.46 MB / 0.7321 GB, free: 54.24 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004599/1.585, allocations: 83.64 kB / 0.7322 GB, free: 54.21 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002001/1.587, allocations: 3.076 MB / 0.7352 GB, free: 53.12 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001069/1.588, allocations: 1.094 MB / 0.7363 GB, free: 52.43 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001967/1.589, allocations: 77.59 kB / 0.7363 GB, free: 52.43 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0001719/1.589, allocations: 459.9 kB / 0.7368 GB, free: 52.12 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002325/1.591, allocations: 1.792 MB / 0.7385 GB, free: 52.11 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002609/1.594, allocations: 2.692 MB / 0.7412 GB, free: 51.12 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00277/1.596, allocations: 2.225 MB / 0.7433 GB, free: 51.07 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.315e-05/1.596, allocations: 10.16 kB / 0.7433 GB, free: 51.07 MB / 426.8 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.008833/1.605, allocations: 6.213 MB / 0.7494 GB, free: 50.39 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.7e-05/1.605, allocations: 14.66 kB / 0.7494 GB, free: 50.39 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.761e-05/1.605, allocations: 26.09 kB / 0.7494 GB, free: 50.39 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002499/1.608, allocations: 1.251 MB / 0.7507 GB, free: 50.29 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003163/1.611, allocations: 0.8213 MB / 0.7515 GB, free: 50.29 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01466/1.626, allocations: 20.69 MB / 0.7717 GB, free: 33.46 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003894/1.63, allocations: 208.2 kB / 0.7719 GB, free: 33.39 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006909/1.63, allocations: 145.3 kB / 0.772 GB, free: 33.37 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (416): * Single equations (assignments): 402 * 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 {(2,100.0%) 14,(1,100.0%) 8,(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.001221/1.632, allocations: 338.2 kB / 0.7723 GB, free: 33.13 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001211/1.633, allocations: 442 kB / 0.7728 GB, free: 32.91 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009955/1.643, allocations: 5.973 MB / 0.7786 GB, free: 30.27 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.159e-05/1.643, allocations: 30.88 kB / 0.7786 GB, free: 30.27 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.931e-05/1.643, allocations: 23.62 kB / 0.7786 GB, free: 30.26 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.987e-05/1.643, allocations: 14.2 kB / 0.7787 GB, free: 30.26 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02417/1.667, allocations: 12.27 MB / 0.7906 GB, free: 25.09 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/1.667, allocations: 2.938 kB / 0.7906 GB, free: 25.09 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001998/1.669, allocations: 459.6 kB / 0.7911 GB, free: 25.08 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0035/1.673, allocations: 1.623 MB / 0.7927 GB, free: 24.54 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003126/1.673, allocations: 73.7 kB / 0.7927 GB, free: 24.5 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02228/1.695, allocations: 30.14 MB / 0.8222 GB, free: 15.32 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/1.695, allocations: 5.156 kB / 0.8222 GB, free: 15.32 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01543/1.711, allocations: 8.863 MB / 0.8308 GB, free: 8.492 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003314/1.714, allocations: 0.9235 MB / 0.8317 GB, free: 7.641 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001511/1.716, allocations: 67.38 kB / 0.8318 GB, free: 7.578 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003303/1.719, allocations: 192.5 kB / 0.832 GB, free: 7.438 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000825/1.72, allocations: 285.9 kB / 0.8323 GB, free: 7.27 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005064/1.72, allocations: 93.48 kB / 0.8323 GB, free: 7.184 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.005959/1.726, allocations: 2.629 MB / 0.8349 GB, free: 4.816 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.102e-06/1.726, allocations: 0 / 0.8349 GB, free: 4.816 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.007734/1.734, allocations: 1.387 MB / 0.8363 GB, free: 3.445 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.stator.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 215 * 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%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01734/1.752, allocations: 10.55 MB / 0.8466 GB, free: 9.828 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01128/1.763, allocations: 6.168 MB / 0.8526 GB, free: 4 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/1.763, allocations: 0 / 0.8526 GB, free: 4 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007849/1.771, allocations: 4.723 MB / 0.8572 GB, free: 15.46 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007425/1.778, allocations: 1.257 MB / 0.8584 GB, free: 14.5 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03294/1.811, allocations: 12.95 MB / 0.8711 GB, free: 3.227 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2603/2.072, allocations: 4.684 MB / 0.8757 GB, free: 101.5 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.00572/2.077, allocations: 1.035 MB / 0.8767 GB, free: 101.5 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005042/2.082, allocations: 2.673 MB / 0.8793 GB, free: 101.5 MB / 474.8 MB Notification: Performance of SimCode: time 1.142e-06/2.082, allocations: 0 / 0.8793 GB, free: 101.5 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1729/2.255, allocations: 122.7 MB / 0.9991 GB, free: 43.53 MB / 474.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001458/2.255, allocations: 190 kB / 0.9993 GB, free: 43.3 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.835/7.091, allocations: 0 / 0.9993 GB, free: 43.3 MB / 474.8 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) 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