Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001046/0.001046, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 227.2 MB / 245 MB, free: 5.789 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009353/0.0009353, allocations: 98.44 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002402/0.0002403, allocations: 8 kB / 358 MB, free: 9.195 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2563, allocations: 51.48 MB / 409.5 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3657/0.622, allocations: 110.7 MB / 0.508 GB, free: 96.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.6223, allocations: 102.4 kB / 0.5081 GB, free: 96.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1635/0.7858, allocations: 83.78 MB / 0.5899 GB, free: 20.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.7859, allocations: 0 / 0.5899 GB, free: 20.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001859/0.786, allocations: 79.88 kB / 0.59 GB, free: 20.5 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.007595/0.7937, allocations: 3.579 MB / 0.5935 GB, free: 16.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.7937, allocations: 12.03 kB / 0.5935 GB, free: 16.83 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007859/0.7945, allocations: 450.9 kB / 0.5939 GB, free: 16.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003537/0.798, allocations: 0.7686 MB / 0.5947 GB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006872/0.8049, allocations: 3.395 MB / 0.598 GB, free: 12.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001252/0.8051, allocations: 234.3 kB / 0.5982 GB, free: 11.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004816/0.8056, allocations: 315.9 kB / 0.5985 GB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005801/0.8114, allocations: 4.172 MB / 0.6026 GB, free: 7.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.719e-05/0.8115, allocations: 7.906 kB / 0.6026 GB, free: 7.312 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002674/0.8117, allocations: 136 kB / 0.6027 GB, free: 7.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.519e-05/0.8118, allocations: 142.2 kB / 0.6029 GB, free: 7.039 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004801/0.8167, allocations: 3.456 MB / 0.6062 GB, free: 3.574 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01877/0.8354, allocations: 13.63 MB / 0.6195 GB, free: 5.578 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006254/0.8417, allocations: 6.886 MB / 0.6263 GB, free: 13.78 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00551/0.8473, allocations: 3.506 MB / 0.6297 GB, free: 10.13 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.291e-05/0.8473, allocations: 55.88 kB / 0.6298 GB, free: 10.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=130): time 2.796e-06/0.8473, allocations: 0 / 0.6298 GB, free: 10.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=150): time 0.01256/0.8599, allocations: 6.794 MB / 0.6364 GB, free: 3.082 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.045e-05/0.86, allocations: 68.72 kB / 0.6365 GB, free: 3.004 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00235/0.8623, allocations: 1.636 MB / 0.638 GB, free: 1.371 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.8625, allocations: 49.7 kB / 0.6381 GB, free: 1.316 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00108/0.8635, allocations: 1.428 MB / 0.6395 GB, free: 15.87 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004027/0.864, allocations: 0.5199 MB / 0.64 GB, free: 15.34 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.199e-05/0.864, allocations: 28 kB / 0.64 GB, free: 15.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.8642, allocations: 385.8 kB / 0.6404 GB, free: 14.93 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001187/0.8654, allocations: 0.7769 MB / 0.6412 GB, free: 14.16 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/0.8669, allocations: 1.222 MB / 0.6423 GB, free: 12.75 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001429/0.8683, allocations: 0.9864 MB / 0.6433 GB, free: 11.76 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/0.8683, allocations: 4 kB / 0.6433 GB, free: 11.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.004407/0.8727, allocations: 2.694 MB / 0.6459 GB, free: 9.047 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.824e-05/0.8728, allocations: 15.95 kB / 0.646 GB, free: 9.031 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/0.8728, allocations: 15.94 kB / 0.646 GB, free: 9.016 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001317/0.8741, allocations: 0.4978 MB / 0.6465 GB, free: 8.512 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001488/0.8756, allocations: 399.4 kB / 0.6468 GB, free: 8.121 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007709/0.8834, allocations: 6.528 MB / 0.6532 GB, free: 1.316 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001508/0.8849, allocations: 87.86 kB / 0.6533 GB, free: 1.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001283/0.885, allocations: 75.94 kB / 0.6534 GB, free: 1.156 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 182 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002066/0.8871, allocations: 1.048 MB / 0.6544 GB, free: 100 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003445/0.8875, allocations: 197.6 kB / 0.6546 GB, free: 15.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004142/0.8916, allocations: 2.563 MB / 0.6571 GB, free: 13.28 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.8916, allocations: 15.98 kB / 0.6571 GB, free: 13.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/0.8916, allocations: 8 kB / 0.6571 GB, free: 13.26 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.8917, allocations: 7.969 kB / 0.6571 GB, free: 13.25 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008532/0.9002, allocations: 5.669 MB / 0.6627 GB, free: 7.445 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.9002, allocations: 4 kB / 0.6627 GB, free: 7.441 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/0.9013, allocations: 231.9 kB / 0.6629 GB, free: 7.215 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001253/0.9026, allocations: 0.4953 MB / 0.6634 GB, free: 6.707 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.702e-05/0.9027, allocations: 39.98 kB / 0.6634 GB, free: 6.668 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.223/1.126, allocations: 10.59 MB / 0.6737 GB, free: 88.61 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/1.126, allocations: 2.469 kB / 0.6737 GB, free: 88.61 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005172/1.131, allocations: 3.763 MB / 0.6774 GB, free: 88.04 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/1.132, allocations: 467.8 kB / 0.6779 GB, free: 87.94 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002253/1.132, allocations: 36.73 kB / 0.6779 GB, free: 87.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009295/1.133, allocations: 75.97 kB / 0.678 GB, free: 87.94 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002611/1.133, allocations: 108.2 kB / 0.6781 GB, free: 87.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-05/1.133, allocations: 50.56 kB / 0.6781 GB, free: 87.94 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001846/1.135, allocations: 1.258 MB / 0.6794 GB, free: 87.83 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.135, allocations: 1.375 kB / 0.6794 GB, free: 87.83 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002115/1.137, allocations: 0.6391 MB / 0.68 GB, free: 87.83 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.stator.stray.Phi.re,aimc.stator.stray.Phi.im,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 103 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005072/1.142, allocations: 4.973 MB / 0.6848 GB, free: 86.32 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003553/1.146, allocations: 2.44 MB / 0.6872 GB, free: 86.03 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/1.146, allocations: 0 / 0.6872 GB, free: 86.03 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002106/1.148, allocations: 1.741 MB / 0.6889 GB, free: 85.45 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00237/1.151, allocations: 0.494 MB / 0.6894 GB, free: 85.44 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02833/1.179, allocations: 26.33 MB / 0.7151 GB, free: 70.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001807/1.181, allocations: 2.435 MB / 0.7175 GB, free: 69.71 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001499/1.182, allocations: 425.2 kB / 0.7179 GB, free: 69.66 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001163/1.183, allocations: 1.122 MB / 0.719 GB, free: 69.66 MB / 442.7 MB Notification: Performance of SimCode: time 8.02e-07/1.183, allocations: 0 / 0.719 GB, free: 69.66 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07393/1.257, allocations: 55.09 MB / 0.7728 GB, free: 45 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001487/1.258, allocations: 238.9 kB / 0.773 GB, free: 44.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.401/4.659, allocations: 4 kB / 0.773 GB, free: 44.7 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat