Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008607/0.0008607, allocations: 96.41 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002475/0.0002473, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2498, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3657/0.6156, allocations: 114.4 MB / 0.504 GB, free: 48.24 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/0.6158, allocations: 107.2 kB / 0.5041 GB, free: 48.24 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1864/0.8023, allocations: 84.02 MB / 0.5861 GB, free: 17.24 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.048e-06/0.8024, allocations: 0 / 0.5861 GB, free: 17.24 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004479/0.8028, allocations: 83.92 kB / 0.5862 GB, free: 17.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: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.01314/0.816, allocations: 3.633 MB / 0.5897 GB, free: 13.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/0.8161, allocations: 16.02 kB / 0.5897 GB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00211/0.8182, allocations: 459.5 kB / 0.5902 GB, free: 12.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004791/0.823, allocations: 0.7411 MB / 0.5909 GB, free: 12.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00957/0.8326, allocations: 3.406 MB / 0.5942 GB, free: 8.766 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002445/0.8329, allocations: 234.4 kB / 0.5945 GB, free: 8.535 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001232/0.8341, allocations: 331.8 kB / 0.5948 GB, free: 8.211 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01253/0.8467, allocations: 4.187 MB / 0.5989 GB, free: 3.914 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001823/0.8469, allocations: 4 kB / 0.5989 GB, free: 3.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001087/0.848, allocations: 144 kB / 0.599 GB, free: 3.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001548/0.8482, allocations: 142.4 kB / 0.5991 GB, free: 3.629 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008539/0.8567, allocations: 3.414 MB / 0.6025 GB, free: 212 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03522/0.892, allocations: 13.48 MB / 0.6156 GB, free: 2.398 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007904/0.8999, allocations: 6.954 MB / 0.6224 GB, free: 10.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008001/0.9079, allocations: 3.313 MB / 0.6257 GB, free: 7.145 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001631/0.9096, allocations: 0.9157 MB / 0.6266 GB, free: 6.195 MB / 410.7 MB Notification: Performance of pre-optimization done (n=143): time 5.18e-06/0.9096, allocations: 0 / 0.6266 GB, free: 6.195 MB / 410.7 MB Notification: Performance of matching and sorting (n=152): time 0.01559/0.9252, allocations: 6.925 MB / 0.6333 GB, free: 15.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/0.9254, allocations: 226.9 kB / 0.6335 GB, free: 14.82 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003675/0.9291, allocations: 1.647 MB / 0.6351 GB, free: 13.17 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001745/0.9293, allocations: 53.7 kB / 0.6352 GB, free: 13.11 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001657/0.931, allocations: 1.467 MB / 0.6366 GB, free: 11.63 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005333/0.9315, allocations: 0.5121 MB / 0.6371 GB, free: 11.11 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.9316, allocations: 36 kB / 0.6372 GB, free: 11.07 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.9318, allocations: 381.9 kB / 0.6375 GB, free: 10.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/0.9331, allocations: 0.6949 MB / 0.6382 GB, free: 10 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001629/0.9348, allocations: 1.221 MB / 0.6394 GB, free: 8.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001529/0.9363, allocations: 0.9238 MB / 0.6403 GB, free: 7.645 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-05/0.9363, allocations: 4 kB / 0.6403 GB, free: 7.641 MB / 426.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004269/0.9406, allocations: 2.494 MB / 0.6427 GB, free: 5.105 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.9406, allocations: 12 kB / 0.6428 GB, free: 5.094 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.616e-05/0.9407, allocations: 12 kB / 0.6428 GB, free: 5.082 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008019/0.9415, allocations: 291.5 kB / 0.643 GB, free: 4.785 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/0.943, allocations: 399.3 kB / 0.6434 GB, free: 4.395 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005543/0.9486, allocations: 5.93 MB / 0.6492 GB, free: 14.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/0.9504, allocations: 100.1 kB / 0.6493 GB, free: 13.97 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002772/0.9507, allocations: 80 kB / 0.6494 GB, free: 13.89 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 200 * 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: 3 * 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: 3 {(1,100.0%) 5,(1,100.0%) 4,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00245/0.9532, allocations: 1.039 MB / 0.6504 GB, free: 12.84 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005902/0.9538, allocations: 201.5 kB / 0.6506 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004672/0.9585, allocations: 2.387 MB / 0.6529 GB, free: 10.19 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.447e-05/0.9585, allocations: 16 kB / 0.6529 GB, free: 10.18 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-05/0.9585, allocations: 4 kB / 0.6529 GB, free: 10.17 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-05/0.9586, allocations: 15.95 kB / 0.653 GB, free: 10.16 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01217/0.9707, allocations: 5.415 MB / 0.6582 GB, free: 4.609 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.9708, allocations: 0 / 0.6582 GB, free: 4.609 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009578/0.9718, allocations: 211.6 kB / 0.6584 GB, free: 4.402 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001323/0.9731, allocations: 464 kB / 0.6589 GB, free: 3.934 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001427/0.9733, allocations: 39.98 kB / 0.6589 GB, free: 3.895 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2834/1.257, allocations: 10.3 MB / 0.669 GB, free: 87.26 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/1.257, allocations: 4.938 kB / 0.669 GB, free: 87.26 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004947/1.262, allocations: 3.428 MB / 0.6723 GB, free: 86.68 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001294/1.263, allocations: 463.1 kB / 0.6728 GB, free: 86.58 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003599/1.263, allocations: 42.81 kB / 0.6728 GB, free: 86.58 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009888/1.264, allocations: 75.27 kB / 0.6729 GB, free: 86.58 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002974/1.265, allocations: 107.4 kB / 0.673 GB, free: 86.58 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.542e-05/1.265, allocations: 44.47 kB / 0.673 GB, free: 86.58 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001898/1.267, allocations: 1.268 MB / 0.6743 GB, free: 86.47 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.267, allocations: 0 / 0.6743 GB, free: 86.47 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002376/1.269, allocations: 0.6445 MB / 0.6749 GB, free: 86.47 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 3,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005914/1.275, allocations: 4.937 MB / 0.6797 GB, free: 84.97 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003309/1.278, allocations: 2.27 MB / 0.6819 GB, free: 84.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/1.278, allocations: 1.812 kB / 0.6819 GB, free: 84.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002553/1.281, allocations: 1.641 MB / 0.6835 GB, free: 83.91 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002713/1.284, allocations: 0.4993 MB / 0.684 GB, free: 83.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03348/1.317, allocations: 26.1 MB / 0.7095 GB, free: 68.36 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002508/1.32, allocations: 2.418 MB / 0.7119 GB, free: 67.57 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00177/1.322, allocations: 426.9 kB / 0.7123 GB, free: 67.52 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001552/1.323, allocations: 1.19 MB / 0.7135 GB, free: 67.51 MB / 442.7 MB Notification: Performance of SimCode: time 8.61e-07/1.323, allocations: 3.75 kB / 0.7135 GB, free: 67.51 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08626/1.409, allocations: 54.46 MB / 0.7666 GB, free: 47.54 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002556/1.41, allocations: 295.2 kB / 0.7669 GB, free: 47.17 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.838/5.247, allocations: 0 / 0.7669 GB, free: 47.17 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat does not exist to compare? outputFormat=mat