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_YD.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_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",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.0018/0.0018, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 91.59 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.257e-05/3.264e-05, allocations: 4 kB / 337.2 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1186, allocations: 50.41 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3735/0.4921, allocations: 111 MB / 498.5 MB, free: 15.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003038/0.4925, allocations: 91.94 kB / 498.6 MB, free: 15.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4806/0.9731, allocations: 91.6 MB / 0.5764 GB, free: 93.72 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.9732, allocations: 0 / 0.5764 GB, free: 93.72 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002795/0.9735, allocations: 104.1 kB / 0.5765 GB, free: 93.71 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1011 * Number of variables: 1011 Notification: Performance of Generate backend data structure: time 0.01081/0.9843, allocations: 3.952 MB / 0.5804 GB, free: 92.17 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.9844, allocations: 7.781 kB / 0.5804 GB, free: 92.17 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005015/0.9894, allocations: 0.8239 MB / 0.5812 GB, free: 91.93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008805/0.9982, allocations: 3.805 MB / 0.5849 GB, free: 91.33 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001869/0.9984, allocations: 133.7 kB / 0.585 GB, free: 91.33 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008749/0.9993, allocations: 231.9 kB / 0.5852 GB, free: 91.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007288/1.007, allocations: 4.115 MB / 0.5893 GB, free: 91.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007957/1.015, allocations: 4.624 MB / 0.5938 GB, free: 89.36 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-05/1.015, allocations: 3.906 kB / 0.5938 GB, free: 89.36 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003302/1.015, allocations: 7.719 kB / 0.5938 GB, free: 89.36 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001289/1.015, allocations: 169.2 kB / 0.5939 GB, free: 89.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02302/1.038, allocations: 16.22 MB / 0.6098 GB, free: 80.53 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005711/1.044, allocations: 8.582 MB / 0.6182 GB, free: 73 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001962/1.046, allocations: 1.724 MB / 0.6198 GB, free: 72.35 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007067/1.053, allocations: 4.717 MB / 0.6245 GB, free: 69.96 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001419/1.055, allocations: 1.192 MB / 0.6256 GB, free: 69.45 MB / 426.7 MB Notification: Performance of pre-optimization done (n=183): time 3.356e-06/1.055, allocations: 0 / 0.6256 GB, free: 69.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=186): time 0.009875/1.064, allocations: 5.91 MB / 0.6314 GB, free: 66.61 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/1.065, allocations: 230.7 kB / 0.6316 GB, free: 66.35 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002728/1.067, allocations: 1.688 MB / 0.6333 GB, free: 65.64 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001525/1.067, allocations: 33.61 kB / 0.6333 GB, free: 65.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001815/1.069, allocations: 1.725 MB / 0.635 GB, free: 64.31 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005034/1.07, allocations: 0.58 MB / 0.6355 GB, free: 63.86 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.407e-05/1.07, allocations: 3.938 kB / 0.6355 GB, free: 63.85 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/1.07, allocations: 385.2 kB / 0.6359 GB, free: 63.52 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/1.071, allocations: 0.8996 MB / 0.6368 GB, free: 62.94 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001299/1.073, allocations: 1.433 MB / 0.6382 GB, free: 61.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001761/1.074, allocations: 1.235 MB / 0.6394 GB, free: 60.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/1.074, allocations: 4 kB / 0.6394 GB, free: 60.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.004786/1.079, allocations: 3.256 MB / 0.6426 GB, free: 57.51 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/1.079, allocations: 16 kB / 0.6426 GB, free: 57.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.919e-05/1.079, allocations: 16 kB / 0.6426 GB, free: 57.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001511/1.081, allocations: 0.736 MB / 0.6433 GB, free: 56.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/1.082, allocations: 367.5 kB / 0.6437 GB, free: 56.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008497/1.091, allocations: 10.45 MB / 0.6539 GB, free: 46.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00212/1.093, allocations: 94.03 kB / 0.654 GB, free: 46.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002154/1.093, allocations: 83.52 kB / 0.654 GB, free: 46.46 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (208): * Single equations (assignments): 203 * 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: 4 * 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: 4 {(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003694/1.093, allocations: 170.2 kB / 0.6542 GB, free: 46.3 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004464/1.098, allocations: 3.013 MB / 0.6572 GB, free: 43.63 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003814/1.098, allocations: 229.2 kB / 0.6574 GB, free: 43.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00474/1.103, allocations: 3.18 MB / 0.6605 GB, free: 40.69 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/1.103, allocations: 20 kB / 0.6605 GB, free: 40.67 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/1.103, allocations: 15.88 kB / 0.6605 GB, free: 40.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.835e-05/1.103, allocations: 13.84 kB / 0.6605 GB, free: 40.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009437/1.113, allocations: 6.311 MB / 0.6667 GB, free: 34.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/1.113, allocations: 7.953 kB / 0.6667 GB, free: 34.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007871/1.113, allocations: 179.9 kB / 0.6669 GB, free: 34.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001872/1.115, allocations: 0.9022 MB / 0.6677 GB, free: 33.31 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001244/1.115, allocations: 19.98 kB / 0.6678 GB, free: 33.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01155/1.127, allocations: 14.67 MB / 0.6821 GB, free: 17.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/1.127, allocations: 4.031 kB / 0.6821 GB, free: 17.96 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006444/1.133, allocations: 4.65 MB / 0.6866 GB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00135/1.135, allocations: 0.5255 MB / 0.6871 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003825/1.135, allocations: 19.98 kB / 0.6872 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/1.136, allocations: 83.91 kB / 0.6872 GB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005729/1.137, allocations: 205.6 kB / 0.6874 GB, free: 12.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/1.137, allocations: 51.86 kB / 0.6875 GB, free: 12.28 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001726/1.139, allocations: 1.264 MB / 0.6887 GB, free: 10.99 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.9e-07/1.139, allocations: 0 / 0.6887 GB, free: 10.99 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002993/1.142, allocations: 0.7071 MB / 0.6894 GB, free: 10.29 MB / 426.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.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 8,(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.006356/1.148, allocations: 5.848 MB / 0.6951 GB, free: 4.355 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003777/1.152, allocations: 2.988 MB / 0.698 GB, free: 1.309 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/1.152, allocations: 6.562 kB / 0.698 GB, free: 1.305 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002871/1.155, allocations: 2.228 MB / 0.7002 GB, free: 15.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003293/1.158, allocations: 0.5136 MB / 0.7007 GB, free: 14.53 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01536/1.174, allocations: 6.801 MB / 0.7074 GB, free: 7.699 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002828/1.176, allocations: 2.909 MB / 0.7102 GB, free: 4.758 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002046/1.178, allocations: 468.9 kB / 0.7107 GB, free: 4.316 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002374/1.181, allocations: 1.413 MB / 0.712 GB, free: 2.902 MB / 442.7 MB Notification: Performance of SimCode: time 8.81e-07/1.181, allocations: 0 / 0.712 GB, free: 2.902 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4265/1.607, allocations: 60.58 MB / 0.7712 GB, free: 90.5 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002685/1.608, allocations: 180.7 kB / 0.7714 GB, free: 90.31 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.835/5.443, allocations: 0 / 0.7714 GB, free: 90.31 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.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_YD_res.mat does not exist to compare? outputFormat=mat