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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001102, allocations: 95.94 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 181.6 kB / 17.2 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 223.2 MB / 241.1 MB, free: 5.477 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003196/0.0003197, allocations: 13.41 kB / 300.8 MB, free: 5.906 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09911/0.09946, allocations: 50.42 MB / 351.2 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD): time 0.01282/0.1123, allocations: 11.46 MB / 362.7 MB, free: 164 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008948/0.1213, allocations: 4.388 MB / 367.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002613/0.124, allocations: 71.69 kB / 367.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003196/0.1272, allocations: 0.8356 MB / 368 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004736/0.132, allocations: 1.257 MB / 369.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002429/0.1345, allocations: 0.6276 MB / 369.9 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006496/0.141, allocations: 3.342 MB / 373.2 MB, free: 5.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004823/0.1458, allocations: 2.729 MB / 375.9 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002887/0.1488, allocations: 1.526 MB / 377.5 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003462/0.1522, allocations: 1.817 MB / 379.3 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001237/0.1535, allocations: 248 kB / 379.5 MB, free: 15.24 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002188/0.1557, allocations: 411.8 kB / 379.9 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001793/0.1575, allocations: 0.9421 MB / 380.9 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001989/0.1596, allocations: 0.9096 MB / 381.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007727/0.1673, allocations: 6.685 MB / 388.5 MB, free: 6.277 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1673, allocations: 0 / 388.5 MB, free: 6.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1674, allocations: 0 / 388.5 MB, free: 6.277 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002624/0.1676, allocations: 0 / 388.5 MB, free: 6.277 MB / 318.1 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.0125/0.1801, allocations: 4.551 MB / 393 MB, free: 1.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.1802, allocations: 8.031 kB / 393 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001617/0.1818, allocations: 0.535 MB / 393.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005122/0.187, allocations: 0.9119 MB / 394.5 MB, free: 188 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006816/0.1938, allocations: 2.82 MB / 397.3 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003494/0.1942, allocations: 299.7 kB / 397.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001235/0.1954, allocations: 391.9 kB / 398 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01258/0.208, allocations: 5.329 MB / 403.3 MB, free: 7.254 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001493/0.2082, allocations: 8 kB / 403.3 MB, free: 7.246 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000828/0.2091, allocations: 156 kB / 403.5 MB, free: 7.094 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001957/0.2093, allocations: 179.6 kB / 403.6 MB, free: 6.918 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01056/0.2198, allocations: 4.73 MB / 408.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02931/0.2492, allocations: 16.93 MB / 425.3 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1796/0.4288, allocations: 8.767 MB / 434.1 MB, free: 52.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009142/0.438, allocations: 4.234 MB / 438.3 MB, free: 52.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002562/0.4406, allocations: 1.348 MB / 439.7 MB, free: 52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=191): time 4.548e-06/0.4407, allocations: 0.5 kB / 439.7 MB, free: 52 MB / 350.1 MB Notification: Performance of matching and sorting (n=194): time 0.01804/0.4587, allocations: 8.846 MB / 448.5 MB, free: 48.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.998e-05/0.4588, allocations: 236.6 kB / 448.7 MB, free: 48.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002918/0.4617, allocations: 2.246 MB / 451 MB, free: 47.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001874/0.4619, allocations: 66.88 kB / 451 MB, free: 47.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001273/0.4632, allocations: 1.727 MB / 452.8 MB, free: 46.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004886/0.4637, allocations: 0.6316 MB / 453.4 MB, free: 45.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.4638, allocations: 45.78 kB / 453.4 MB, free: 45.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.464, allocations: 388.9 kB / 453.8 MB, free: 45.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001479/0.4655, allocations: 1.044 MB / 454.9 MB, free: 44.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001701/0.4672, allocations: 1.634 MB / 456.5 MB, free: 43.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001785/0.469, allocations: 1.259 MB / 457.8 MB, free: 42.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/0.469, allocations: 7.812 kB / 457.8 MB, free: 42.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.005587/0.4746, allocations: 3.61 MB / 461.4 MB, free: 40.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.2e-05/0.4747, allocations: 15.78 kB / 461.4 MB, free: 40.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.926e-05/0.4747, allocations: 19.44 kB / 461.4 MB, free: 40.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001642/0.4763, allocations: 0.7669 MB / 462.2 MB, free: 40 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001486/0.4778, allocations: 407.3 kB / 462.6 MB, free: 39.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00958/0.4874, allocations: 11.09 MB / 473.7 MB, free: 28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002165/0.4896, allocations: 144 kB / 473.8 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002439/0.4899, allocations: 91.98 kB / 473.9 MB, free: 27.77 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 218 * 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.002276/0.4922, allocations: 1.332 MB / 475.2 MB, free: 26.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005279/0.4927, allocations: 245 kB / 475.5 MB, free: 26.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004985/0.4977, allocations: 3.433 MB / 478.9 MB, free: 22.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.4978, allocations: 20 kB / 478.9 MB, free: 22.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.759e-05/0.4978, allocations: 12 kB / 478.9 MB, free: 22.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-05/0.4978, allocations: 11.97 kB / 478.9 MB, free: 22.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0109/0.5087, allocations: 7.104 MB / 486 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.5088, allocations: 192 / 486 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008267/0.5096, allocations: 210.3 kB / 486.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001944/0.5115, allocations: 0.9348 MB / 487.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001403/0.5117, allocations: 48.53 kB / 487.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01355/0.5253, allocations: 15.54 MB / 0.491 GB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/0.5253, allocations: 12.03 kB / 0.491 GB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008623/0.5339, allocations: 4.997 MB / 0.4959 GB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001685/0.5357, allocations: 0.5604 MB / 0.4964 GB, free: 8.211 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005033/0.5362, allocations: 43.98 kB / 0.4965 GB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001215/0.5374, allocations: 111.9 kB / 0.4966 GB, free: 8.059 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005107/0.5379, allocations: 213.6 kB / 0.4968 GB, free: 7.848 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/0.538, allocations: 51.98 kB / 0.4968 GB, free: 7.797 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002554/0.5406, allocations: 1.539 MB / 0.4983 GB, free: 6.242 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5406, allocations: 0 / 0.4983 GB, free: 6.242 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003183/0.5438, allocations: 0.7734 MB / 0.4991 GB, free: 5.469 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 109 * 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%) 13,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008502/0.5523, allocations: 6.011 MB / 0.505 GB, free: 15.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005496/0.5579, allocations: 3.384 MB / 0.5083 GB, free: 11.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.5579, allocations: 0 / 0.5083 GB, free: 11.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003904/0.5618, allocations: 2.48 MB / 0.5107 GB, free: 9.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003015/0.5648, allocations: 0.6496 MB / 0.5113 GB, free: 8.699 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04955/0.6144, allocations: 32.43 MB / 0.543 GB, free: 6.793 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003557/0.618, allocations: 2.917 MB / 0.5458 GB, free: 3.855 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00195/0.62, allocations: 0.5131 MB / 0.5463 GB, free: 3.336 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001857/0.6219, allocations: 1.44 MB / 0.5477 GB, free: 1.895 MB / 414.1 MB Notification: Performance of SimCode: time 1.002e-06/0.6219, allocations: 0 / 0.5477 GB, free: 1.895 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2826/0.9045, allocations: 66.75 MB / 0.6129 GB, free: 128.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001484/0.9047, allocations: 251 kB / 0.6132 GB, free: 128 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.189/4.094, allocations: 0 / 0.6132 GB, free: 128 MB / 446.1 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