Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_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.001048/0.001048, allocations: 175.4 kB / 13.63 MB, free: 1.684 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.307/1.307, allocations: 221.3 MB / 235.5 MB, free: 2.918 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.001028/0.001028, allocations: 93.92 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.827e-05/2.849e-05, allocations: 0 / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1055, allocations: 50.42 MB / 394.4 MB, free: 1.746 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3475/0.453, allocations: 105.4 MB / 499.8 MB, free: 14.01 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/0.4534, allocations: 85.77 kB / 499.8 MB, free: 13.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.142/0.5953, allocations: 53.51 MB / 0.5404 GB, free: 8 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.937e-06/0.5954, allocations: 0 / 0.5404 GB, free: 8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003796/0.5958, allocations: 67.94 kB / 0.5404 GB, free: 7.934 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.007698/0.6035, allocations: 2.73 MB / 0.5431 GB, free: 5.145 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.6036, allocations: 8.031 kB / 0.5431 GB, free: 5.137 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001276/0.6048, allocations: 370.8 kB / 0.5435 GB, free: 4.766 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001678/0.6065, allocations: 356 kB / 0.5438 GB, free: 4.414 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005148/0.6117, allocations: 1.882 MB / 0.5457 GB, free: 2.477 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002331/0.612, allocations: 205.3 kB / 0.5458 GB, free: 2.273 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008478/0.6128, allocations: 255.9 kB / 0.5461 GB, free: 2.023 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2245/0.8373, allocations: 3.41 MB / 0.5494 GB, free: 98.49 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.16e-05/0.8375, allocations: 8.266 kB / 0.5494 GB, free: 98.49 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002677/0.8377, allocations: 104.6 kB / 0.5495 GB, free: 98.49 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001207/0.8379, allocations: 108.8 kB / 0.5496 GB, free: 98.48 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005519/0.8434, allocations: 2.844 MB / 0.5524 GB, free: 98.45 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02466/0.8681, allocations: 10.92 MB / 0.5631 GB, free: 95.86 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003511/0.8716, allocations: 3.061 MB / 0.5661 GB, free: 94.68 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001913/0.8736, allocations: 1.247 MB / 0.5673 GB, free: 94.67 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003295/0.8739, allocations: 144 kB / 0.5674 GB, free: 94.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001625/0.8756, allocations: 1.109 MB / 0.5685 GB, free: 94.47 MB / 426.7 MB Notification: Performance of pre-optimization done (n=159): time 3.596e-06/0.8756, allocations: 4.922 kB / 0.5685 GB, free: 94.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=175): time 0.01427/0.8899, allocations: 6.739 MB / 0.5751 GB, free: 92.69 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.088e-05/0.89, allocations: 179 kB / 0.5753 GB, free: 92.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002285/0.8923, allocations: 1.592 MB / 0.5768 GB, free: 91.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001956/0.8925, allocations: 61.3 kB / 0.5769 GB, free: 91.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009169/0.8934, allocations: 1.163 MB / 0.578 GB, free: 91.09 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003809/0.8938, allocations: 0.5708 MB / 0.5786 GB, free: 90.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.038e-05/0.8939, allocations: 35.66 kB / 0.5786 GB, free: 90.63 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.69e-05/0.894, allocations: 375.5 kB / 0.579 GB, free: 90.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001127/0.8951, allocations: 0.949 MB / 0.5799 GB, free: 89.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001327/0.8965, allocations: 1.323 MB / 0.5812 GB, free: 89.21 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/0.8978, allocations: 1.105 MB / 0.5823 GB, free: 88.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.902e-06/0.8978, allocations: 2.875 kB / 0.5823 GB, free: 88.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004654/0.9024, allocations: 3.188 MB / 0.5854 GB, free: 87.69 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.983e-05/0.9025, allocations: 10.28 kB / 0.5854 GB, free: 87.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.737e-05/0.9025, allocations: 5.781 kB / 0.5854 GB, free: 87.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001815/0.9043, allocations: 0.8777 MB / 0.5862 GB, free: 87.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.9057, allocations: 333.6 kB / 0.5866 GB, free: 87.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008686/0.9144, allocations: 9.538 MB / 0.5959 GB, free: 81.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001944/0.9164, allocations: 143.7 kB / 0.596 GB, free: 81.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001747/0.9166, allocations: 68.59 kB / 0.5961 GB, free: 81.09 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (179): * Single equations (assignments): 174 * 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: 3 * 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: 3 {(2,100.0%) 12,(9,33.3%) 25,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003518/0.9169, allocations: 214.7 kB / 0.5963 GB, free: 80.93 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003408/0.9173, allocations: 212.5 kB / 0.5965 GB, free: 80.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004437/0.9217, allocations: 3.049 MB / 0.5995 GB, free: 79.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.9217, allocations: 13.53 kB / 0.5995 GB, free: 79.68 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.9218, allocations: 10.16 kB / 0.5995 GB, free: 79.68 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-05/0.9218, allocations: 13.8 kB / 0.5995 GB, free: 79.67 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/0.9322, allocations: 6.188 MB / 0.6055 GB, free: 77.28 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.276e-06/0.9322, allocations: 0 / 0.6055 GB, free: 77.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009079/0.9331, allocations: 224.2 kB / 0.6058 GB, free: 77.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001973/0.9351, allocations: 0.9314 MB / 0.6067 GB, free: 76.99 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001212/0.9352, allocations: 45.77 kB / 0.6067 GB, free: 76.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009576/0.9448, allocations: 11.01 MB / 0.6175 GB, free: 69.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.9449, allocations: 1.719 kB / 0.6175 GB, free: 69.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005798/0.9507, allocations: 4.57 MB / 0.6219 GB, free: 67.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001069/0.9518, allocations: 0.4994 MB / 0.6224 GB, free: 66.99 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002896/0.9521, allocations: 43.86 kB / 0.6225 GB, free: 66.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.9531, allocations: 116.2 kB / 0.6226 GB, free: 66.94 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004335/0.9536, allocations: 203.1 kB / 0.6228 GB, free: 66.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/0.9537, allocations: 54.67 kB / 0.6228 GB, free: 66.89 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001531/0.9552, allocations: 1.215 MB / 0.624 GB, free: 66.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.9552, allocations: 8.844 kB / 0.624 GB, free: 66.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002189/0.9574, allocations: 0.6599 MB / 0.6247 GB, free: 66.36 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (126): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {(2,100.0%) 12,(1,100.0%) 1,(9,33.3%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006026/0.9635, allocations: 5.949 MB / 0.6305 GB, free: 61.11 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003996/0.9675, allocations: 3.134 MB / 0.6335 GB, free: 58.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.094e-06/0.9675, allocations: 0 / 0.6335 GB, free: 58.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002761/0.9703, allocations: 2.203 MB / 0.6357 GB, free: 56.18 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002847/0.9732, allocations: 0.5419 MB / 0.6362 GB, free: 55.76 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009417/0.9826, allocations: 5.458 MB / 0.6415 GB, free: 51.03 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00164/0.9843, allocations: 2.232 MB / 0.6437 GB, free: 49.25 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001556/0.9859, allocations: 449.7 kB / 0.6441 GB, free: 48.95 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001136/0.987, allocations: 0.9934 MB / 0.6451 GB, free: 48.03 MB / 426.7 MB Notification: Performance of SimCode: time 1.703e-06/0.987, allocations: 0 / 0.6451 GB, free: 48.03 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08495/1.072, allocations: 58.44 MB / 0.7022 GB, free: 9.93 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001923/1.072, allocations: 181.6 kB / 0.7024 GB, free: 9.711 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.351/4.423, allocations: 4 kB / 0.7024 GB, free: 9.707 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat does not exist to compare? outputFormat=mat