Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001011/0.001011, allocations: 202.6 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.25/1.25, allocations: 227.2 MB / 245 MB, free: 7.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008801/0.0008799, allocations: 108 kB / 297.3 MB, free: 6.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002461/0.0002461, allocations: 4 kB / 358 MB, free: 9.406 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2068, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3253/0.5321, allocations: 111.5 MB / 0.5088 GB, free: 98.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003032/0.5325, allocations: 93.66 kB / 0.5089 GB, free: 98.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1514/0.6839, allocations: 65.66 MB / 0.573 GB, free: 38.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.684, allocations: 0 / 0.573 GB, free: 38.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002707/0.6842, allocations: 87.94 kB / 0.5731 GB, free: 38.16 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.008454/0.6927, allocations: 3.675 MB / 0.5767 GB, free: 34.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.6928, allocations: 8.031 kB / 0.5767 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001213/0.694, allocations: 450.4 kB / 0.5771 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001485/0.6955, allocations: 487.1 kB / 0.5776 GB, free: 33.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004266/0.6998, allocations: 2.39 MB / 0.5799 GB, free: 31.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001242/0.6999, allocations: 226.2 kB / 0.5801 GB, free: 30.81 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004696/0.7004, allocations: 307.9 kB / 0.5804 GB, free: 30.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006335/0.7067, allocations: 4.326 MB / 0.5847 GB, free: 26.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.273e-05/0.7068, allocations: 11.89 kB / 0.5847 GB, free: 26 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002771/0.7071, allocations: 132 kB / 0.5848 GB, free: 25.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.843e-05/0.7072, allocations: 122 kB / 0.5849 GB, free: 25.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005374/0.7126, allocations: 3.619 MB / 0.5884 GB, free: 22.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02058/0.7332, allocations: 13.59 MB / 0.6017 GB, free: 8.184 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002685/0.7359, allocations: 2.953 MB / 0.6046 GB, free: 5.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002667/0.7362, allocations: 147 kB / 0.6047 GB, free: 4.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.7362, allocations: 49.03 kB / 0.6048 GB, free: 4.855 MB / 378.7 MB Notification: Performance of pre-optimization done (n=167): time 3.196e-06/0.7362, allocations: 4 kB / 0.6048 GB, free: 4.852 MB / 378.7 MB Notification: Performance of matching and sorting (n=183): time 0.01828/0.7545, allocations: 9.421 MB / 0.614 GB, free: 11.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/0.7546, allocations: 73.41 kB / 0.6141 GB, free: 11.15 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003643/0.7583, allocations: 2.069 MB / 0.6161 GB, free: 9.059 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003621/0.7587, allocations: 57.7 kB / 0.6161 GB, free: 8.996 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00103/0.7597, allocations: 1.451 MB / 0.6176 GB, free: 7.527 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006419/0.7604, allocations: 0.6083 MB / 0.6181 GB, free: 6.91 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/0.7605, allocations: 40 kB / 0.6182 GB, free: 6.871 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.7607, allocations: 381.9 kB / 0.6185 GB, free: 6.492 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001785/0.7625, allocations: 1.155 MB / 0.6197 GB, free: 5.336 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002008/0.7645, allocations: 1.557 MB / 0.6212 GB, free: 3.617 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001931/0.7664, allocations: 1.357 MB / 0.6225 GB, free: 2.266 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.926e-06/0.7664, allocations: 4 kB / 0.6225 GB, free: 2.262 MB / 394.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.005989/0.7724, allocations: 3.62 MB / 0.6261 GB, free: 14.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.148e-05/0.7725, allocations: 15.98 kB / 0.6261 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/0.7725, allocations: 12 kB / 0.6261 GB, free: 14.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001952/0.7745, allocations: 0.8019 MB / 0.6269 GB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00176/0.7763, allocations: 459.3 kB / 0.6273 GB, free: 13.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/0.7864, allocations: 10.51 MB / 0.6376 GB, free: 2.133 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002732/0.7891, allocations: 127.8 kB / 0.6377 GB, free: 2.008 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002276/0.7894, allocations: 75.98 kB / 0.6378 GB, free: 1.934 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (217): * Single equations (assignments): 210 * 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: 5 * 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: 5 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002873/0.7922, allocations: 1.097 MB / 0.6388 GB, free: 0.8281 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007642/0.793, allocations: 241.1 kB / 0.6391 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005874/0.7989, allocations: 3.399 MB / 0.6424 GB, free: 13.15 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.697e-05/0.799, allocations: 20 kB / 0.6424 GB, free: 13.13 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.799, allocations: 4 kB / 0.6424 GB, free: 13.13 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.622e-05/0.799, allocations: 7.969 kB / 0.6424 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01245/0.8115, allocations: 6.939 MB / 0.6492 GB, free: 6.066 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/0.8115, allocations: 4 kB / 0.6492 GB, free: 6.062 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00137/0.8129, allocations: 311.8 kB / 0.6495 GB, free: 5.758 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00249/0.8154, allocations: 0.9235 MB / 0.6504 GB, free: 4.809 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001967/0.8156, allocations: 43.98 kB / 0.6504 GB, free: 4.766 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01211/0.8277, allocations: 13.76 MB / 0.6639 GB, free: 6.07 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.8277, allocations: 0 / 0.6639 GB, free: 6.07 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007661/0.8354, allocations: 5.152 MB / 0.6689 GB, free: 0.8008 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001708/0.8371, allocations: 0.5801 MB / 0.6695 GB, free: 204 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000336/0.8375, allocations: 39.95 kB / 0.6695 GB, free: 164 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.8388, allocations: 139.8 kB / 0.6696 GB, free: 24 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2038/1.043, allocations: 155 kB / 0.6698 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001903/1.043, allocations: 52.34 kB / 0.6698 GB, free: 102 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002679/1.046, allocations: 1.6 MB / 0.6714 GB, free: 101.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.7e-07/1.046, allocations: 0 / 0.6714 GB, free: 101.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002321/1.048, allocations: 0.736 MB / 0.6721 GB, free: 101.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 140 * 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: 7 * 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: 7 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 1,(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.007579/1.055, allocations: 6.425 MB / 0.6784 GB, free: 100.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00449/1.06, allocations: 3.658 MB / 0.682 GB, free: 99.62 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/1.06, allocations: 0 / 0.682 GB, free: 99.62 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002972/1.063, allocations: 2.568 MB / 0.6845 GB, free: 98.71 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003737/1.067, allocations: 0.6679 MB / 0.6851 GB, free: 98.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03405/1.101, allocations: 29 MB / 0.7135 GB, free: 84.03 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002479/1.103, allocations: 2.586 MB / 0.716 GB, free: 83.24 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003046/1.106, allocations: 0.5792 MB / 0.7165 GB, free: 83.19 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001571/1.108, allocations: 1.247 MB / 0.7178 GB, free: 82.42 MB / 442.7 MB Notification: Performance of SimCode: time 2.735e-06/1.108, allocations: 0 / 0.7178 GB, free: 82.42 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1043/1.212, allocations: 67.88 MB / 0.7841 GB, free: 36.23 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000137/1.213, allocations: 218.5 kB / 0.7843 GB, free: 35.99 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.571/4.784, allocations: 4 kB / 0.7843 GB, free: 35.98 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat