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.001039/0.001039, allocations: 181 kB / 17.01 MB, free: 5.125 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.27/1.27, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0007783/0.0007784, allocations: 92.11 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003344/0.0003343, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2435, allocations: 47.58 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3061/0.5497, allocations: 128.9 MB / 0.493 GB, free: 108.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002638/0.55, allocations: 87.16 kB / 0.4931 GB, free: 108.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3173/0.8673, allocations: 150.1 MB / 0.6396 GB, free: 8.438 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.8674, allocations: 4 kB / 0.6396 GB, free: 8.434 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007808/0.8682, allocations: 179.8 kB / 0.6398 GB, free: 8.258 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.02224/0.8904, allocations: 7.274 MB / 0.6469 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.8905, allocations: 8.031 kB / 0.6469 GB, free: 0.8867 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.3793/1.27, allocations: 0.9334 MB / 0.6478 GB, free: 33.82 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007448/1.277, allocations: 1.243 MB / 0.6491 GB, free: 33.68 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01475/1.292, allocations: 6.265 MB / 0.6552 GB, free: 33.14 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004352/1.293, allocations: 0.5012 MB / 0.6557 GB, free: 33.12 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00224/1.295, allocations: 0.6637 MB / 0.6563 GB, free: 33.12 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0167/1.311, allocations: 9.345 MB / 0.6654 GB, free: 32.18 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001444/1.312, allocations: 15.84 kB / 0.6654 GB, free: 32.18 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006613/1.312, allocations: 290.5 kB / 0.6657 GB, free: 32.18 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002141/1.313, allocations: 302 kB / 0.666 GB, free: 32.16 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01321/1.326, allocations: 7.674 MB / 0.6735 GB, free: 32.1 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05806/1.384, allocations: 29.48 MB / 0.7023 GB, free: 26.05 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01045/1.394, allocations: 11.88 MB / 0.7139 GB, free: 16.83 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01471/1.409, allocations: 6.988 MB / 0.7207 GB, free: 13.52 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.578e-05/1.409, allocations: 77.56 kB / 0.7208 GB, free: 13.46 MB / 410.8 MB Notification: Performance of pre-optimization done (n=323): time 6.322e-06/1.409, allocations: 0 / 0.7208 GB, free: 13.46 MB / 410.8 MB Notification: Performance of matching and sorting (n=342): time 0.03051/1.44, allocations: 16.33 MB / 0.7367 GB, free: 5.719 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.22e-05/1.44, allocations: 84.38 kB / 0.7368 GB, free: 5.652 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0068/1.447, allocations: 3.484 MB / 0.7402 GB, free: 4.371 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004043/1.447, allocations: 89.02 kB / 0.7403 GB, free: 4.293 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001807/1.449, allocations: 3.043 MB / 0.7433 GB, free: 1.98 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009066/1.45, allocations: 1.15 MB / 0.7444 GB, free: 1.086 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003253/1.45, allocations: 77.16 kB / 0.7445 GB, free: 1.027 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0002179/1.45, allocations: 462 kB / 0.7449 GB, free: 0.6562 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002974/1.453, allocations: 1.945 MB / 0.7468 GB, free: 0 / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003686/1.457, allocations: 2.823 MB / 0.7496 GB, free: 14.25 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003655/1.461, allocations: 2.362 MB / 0.7519 GB, free: 13.26 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.53e-05/1.461, allocations: 6.406 kB / 0.7519 GB, free: 13.26 MB / 426.8 MB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01029/1.471, allocations: 6.51 MB / 0.7583 GB, free: 10.66 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.785e-05/1.471, allocations: 15.34 kB / 0.7583 GB, free: 10.66 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-05/1.471, allocations: 28.28 kB / 0.7583 GB, free: 10.66 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002779/1.474, allocations: 1.26 MB / 0.7595 GB, free: 10.23 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003281/1.477, allocations: 0.8458 MB / 0.7603 GB, free: 10.2 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01745/1.495, allocations: 21.11 MB / 0.781 GB, free: 7.77 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003754/1.498, allocations: 200.2 kB / 0.7812 GB, free: 7.617 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006978/1.499, allocations: 151.5 kB / 0.7813 GB, free: 7.473 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 117 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (429): * Single equations (assignments): 415 * 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.005003/1.504, allocations: 2.182 MB / 0.7834 GB, free: 5.629 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00129/1.506, allocations: 446.6 kB / 0.7839 GB, free: 5.188 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01111/1.517, allocations: 6.314 MB / 0.79 GB, free: 15.8 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.513e-05/1.517, allocations: 32 kB / 0.7901 GB, free: 15.77 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.973e-05/1.517, allocations: 19.95 kB / 0.7901 GB, free: 15.75 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.757e-05/1.517, allocations: 19.8 kB / 0.7901 GB, free: 15.75 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02348/1.54, allocations: 12.75 MB / 0.8025 GB, free: 5.266 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.361e-05/1.54, allocations: 13.12 kB / 0.8026 GB, free: 5.262 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002219/1.543, allocations: 495.7 kB / 0.803 GB, free: 4.883 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003735/1.546, allocations: 1.615 MB / 0.8046 GB, free: 3.605 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002695/1.547, allocations: 79.27 kB / 0.8047 GB, free: 3.535 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2481/1.795, allocations: 30.76 MB / 0.8347 GB, free: 79.51 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/1.795, allocations: 3.406 kB / 0.8347 GB, free: 79.51 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01268/1.807, allocations: 9.369 MB / 0.8439 GB, free: 78.16 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003079/1.811, allocations: 0.9421 MB / 0.8448 GB, free: 78.06 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001327/1.812, allocations: 79.42 kB / 0.8449 GB, free: 78.06 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002751/1.815, allocations: 201.9 kB / 0.8451 GB, free: 78.06 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007165/1.815, allocations: 295.3 kB / 0.8453 GB, free: 78.05 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002288/1.816, allocations: 90.16 kB / 0.8454 GB, free: 78.05 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.003809/1.819, allocations: 2.668 MB / 0.848 GB, free: 77.88 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.4e-07/1.819, allocations: 0 / 0.848 GB, free: 77.88 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.00551/1.825, allocations: 1.397 MB / 0.8494 GB, free: 77.88 MB / 474.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (249): * Single equations (assignments): 232 * 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,(1,100.0%) 8,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(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.01411/1.839, allocations: 11.01 MB / 0.8602 GB, free: 75.38 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.009369/1.849, allocations: 6.519 MB / 0.8665 GB, free: 73.75 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/1.849, allocations: 3.688 kB / 0.8665 GB, free: 73.75 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005918/1.854, allocations: 4.91 MB / 0.8713 GB, free: 71.8 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006621/1.861, allocations: 1.254 MB / 0.8725 GB, free: 71.78 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08843/1.95, allocations: 60.51 MB / 0.9316 GB, free: 36.7 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008277/1.958, allocations: 4.617 MB / 0.9361 GB, free: 35.58 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.005223/1.963, allocations: 1.058 MB / 0.9372 GB, free: 35.48 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00404/1.967, allocations: 2.675 MB / 0.9398 GB, free: 33.24 MB / 474.8 MB Notification: Performance of SimCode: time 1.853e-06/1.967, allocations: 0 / 0.9398 GB, free: 33.24 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3798/2.347, allocations: 123 MB / 1.06 GB, free: 83.77 MB / 474.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001452/2.347, allocations: 222.2 kB / 1.06 GB, free: 83.53 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.327/7.675, allocations: 6.719 kB / 1.06 GB, free: 83.53 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