Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_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.001472/0.001472, allocations: 180.9 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.613/1.613, allocations: 205.4 MB / 223.1 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.0008598/0.0008598, allocations: 98.31 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002842/0.0002843, allocations: 4 kB / 328.3 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3011, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1345/0.4356, allocations: 110.2 MB / 486.1 MB, free: 2.367 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/0.4359, allocations: 87.95 kB / 486.2 MB, free: 2.281 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3558/0.7917, allocations: 65.06 MB / 0.5384 GB, free: 79.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.7917, allocations: 0 / 0.5384 GB, free: 79.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004107/0.7922, allocations: 83.94 kB / 0.5384 GB, free: 79.21 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.0114/0.8036, allocations: 3.659 MB / 0.542 GB, free: 75.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/0.8036, allocations: 8.031 kB / 0.542 GB, free: 75.48 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00218/0.8058, allocations: 446.4 kB / 0.5424 GB, free: 75.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002521/0.8084, allocations: 443.1 kB / 0.5429 GB, free: 74.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00701/0.8154, allocations: 2.394 MB / 0.5452 GB, free: 72.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002782/0.8157, allocations: 230.1 kB / 0.5454 GB, free: 71.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001419/0.8172, allocations: 307.9 kB / 0.5457 GB, free: 71.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01208/0.8293, allocations: 4.338 MB / 0.5499 GB, free: 67.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001436/0.8295, allocations: 7.938 kB / 0.55 GB, free: 67.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004902/0.83, allocations: 128 kB / 0.5501 GB, free: 66.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001174/0.8301, allocations: 129.9 kB / 0.5502 GB, free: 66.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006015/0.8361, allocations: 3.627 MB / 0.5537 GB, free: 63.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01981/0.856, allocations: 13.61 MB / 0.567 GB, free: 49.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00317/0.8592, allocations: 2.946 MB / 0.5699 GB, free: 46.14 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003802/0.8596, allocations: 147 kB / 0.5701 GB, free: 45.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.955e-05/0.8597, allocations: 52.56 kB / 0.5701 GB, free: 45.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=167): time 5.33e-06/0.8597, allocations: 0 / 0.5701 GB, free: 45.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=183): time 0.01692/0.8766, allocations: 9.427 MB / 0.5793 GB, free: 36.31 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.519e-05/0.8767, allocations: 73.34 kB / 0.5794 GB, free: 36.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003357/0.8801, allocations: 2.069 MB / 0.5814 GB, free: 34.13 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003092/0.8804, allocations: 57.7 kB / 0.5815 GB, free: 34.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009364/0.8814, allocations: 1.458 MB / 0.5829 GB, free: 32.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005676/0.8819, allocations: 0.6122 MB / 0.5835 GB, free: 31.97 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.8821, allocations: 40 kB / 0.5835 GB, free: 31.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.8822, allocations: 381.9 kB / 0.5839 GB, free: 31.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001537/0.8838, allocations: 1.159 MB / 0.585 GB, free: 30.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001688/0.8854, allocations: 1.557 MB / 0.5865 GB, free: 28.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001672/0.8871, allocations: 1.357 MB / 0.5879 GB, free: 27.33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.8872, allocations: 4 kB / 0.5879 GB, free: 27.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.005468/0.8926, allocations: 3.616 MB / 0.5914 GB, free: 23.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.747e-05/0.8927, allocations: 15.98 kB / 0.5914 GB, free: 23.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.441e-05/0.8927, allocations: 19.89 kB / 0.5914 GB, free: 23.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00184/0.8946, allocations: 0.7985 MB / 0.5922 GB, free: 22.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001828/0.8964, allocations: 467.3 kB / 0.5927 GB, free: 22.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008098/0.9045, allocations: 10.51 MB / 0.6029 GB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002788/0.9074, allocations: 135.8 kB / 0.603 GB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005372/0.9079, allocations: 72 kB / 0.6031 GB, free: 10.98 MB / 378.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.003112/0.9111, allocations: 1.092 MB / 0.6042 GB, free: 9.879 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001047/0.9121, allocations: 241.1 kB / 0.6044 GB, free: 9.641 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006191/0.9183, allocations: 3.407 MB / 0.6077 GB, free: 6.195 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/0.9184, allocations: 16 kB / 0.6077 GB, free: 6.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.46e-05/0.9184, allocations: 12 kB / 0.6078 GB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.539e-05/0.9184, allocations: 7.969 kB / 0.6078 GB, free: 6.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01283/0.9313, allocations: 6.931 MB / 0.6145 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.161e-05/0.9313, allocations: 7.938 kB / 0.6145 GB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00142/0.9327, allocations: 315.5 kB / 0.6148 GB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0026/0.9354, allocations: 0.9251 MB / 0.6157 GB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001961/0.9356, allocations: 43.97 kB / 0.6158 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01544/0.951, allocations: 13.76 MB / 0.6292 GB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.9511, allocations: 4.031 kB / 0.6292 GB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01038/0.9615, allocations: 5.152 MB / 0.6343 GB, free: 9.84 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002369/0.9639, allocations: 0.576 MB / 0.6348 GB, free: 9.242 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001328/0.9653, allocations: 36 kB / 0.6349 GB, free: 9.207 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002354/0.9676, allocations: 139.8 kB / 0.635 GB, free: 9.07 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005284/0.9682, allocations: 157.7 kB / 0.6351 GB, free: 8.914 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001964/0.9684, allocations: 56.03 kB / 0.6352 GB, free: 8.859 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004394/0.9728, allocations: 1.598 MB / 0.6368 GB, free: 7.246 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.92e-07/0.9729, allocations: 0 / 0.6368 GB, free: 7.246 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004564/0.9774, allocations: 0.7423 MB / 0.6375 GB, free: 6.504 MB / 410.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.2466/1.224, allocations: 6.423 MB / 0.6438 GB, free: 105.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005816/1.23, allocations: 3.669 MB / 0.6473 GB, free: 105 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/1.23, allocations: 0 / 0.6473 GB, free: 105 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003421/1.233, allocations: 2.567 MB / 0.6498 GB, free: 104.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00327/1.237, allocations: 0.6631 MB / 0.6505 GB, free: 104.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04569/1.282, allocations: 28.99 MB / 0.6788 GB, free: 89.38 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002563/1.285, allocations: 2.582 MB / 0.6813 GB, free: 88.59 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002524/1.288, allocations: 0.5822 MB / 0.6819 GB, free: 88.54 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001606/1.289, allocations: 1.248 MB / 0.6831 GB, free: 87.89 MB / 410.7 MB Notification: Performance of SimCode: time 8.82e-07/1.289, allocations: 0 / 0.6831 GB, free: 87.89 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1095/1.399, allocations: 67.75 MB / 0.7493 GB, free: 35.09 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002514/1.399, allocations: 232.9 kB / 0.7495 GB, free: 34.85 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.767/5.166, allocations: 4.594 kB / 0.7495 GB, free: 34.85 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat