Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008597/0.0008597, allocations: 98.67 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009994/0.0009995, allocations: 193 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002301/0.0002301, allocations: 4 kB / 306.8 MB, free: 1.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1077, allocations: 51.49 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.2215/0.3293, allocations: 15.37 MB / 373.7 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01167/0.341, allocations: 5.524 MB / 379.2 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00418/0.3452, allocations: 105.3 kB / 379.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00434/0.3496, allocations: 1.028 MB / 380.3 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006846/0.3565, allocations: 1.474 MB / 381.8 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003218/0.3597, allocations: 0.7173 MB / 382.5 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01048/0.3702, allocations: 6.475 MB / 389 MB, free: 6.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006373/0.3766, allocations: 3.55 MB / 392.6 MB, free: 5.191 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005014/0.3817, allocations: 2.049 MB / 394.6 MB, free: 4.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005868/0.3876, allocations: 2.616 MB / 397.2 MB, free: 2.859 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001769/0.3894, allocations: 331 kB / 397.5 MB, free: 2.859 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003717/0.3931, allocations: 0.5734 MB / 398.1 MB, free: 2.742 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001682/0.3948, allocations: 1.294 MB / 399.4 MB, free: 1.824 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002805/0.3976, allocations: 1.14 MB / 400.6 MB, free: 1.145 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01112/0.4088, allocations: 8.621 MB / 409.2 MB, free: 9.449 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.4088, allocations: 0 / 409.2 MB, free: 9.449 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.155e-06/0.4088, allocations: 4 kB / 409.2 MB, free: 9.445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003722/0.4092, allocations: 0 / 409.2 MB, free: 9.445 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01556/0.4248, allocations: 5.574 MB / 414.8 MB, free: 3.855 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.4248, allocations: 8.031 kB / 414.8 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00222/0.4271, allocations: 0.6721 MB / 415.4 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00576/0.4328, allocations: 1.101 MB / 416.5 MB, free: 2.066 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007347/0.4402, allocations: 3.429 MB / 420 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000387/0.4406, allocations: 372.5 kB / 420.3 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001402/0.442, allocations: 485 kB / 420.8 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01548/0.4575, allocations: 6.839 MB / 427.6 MB, free: 6.883 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001031/0.4577, allocations: 11.92 kB / 427.7 MB, free: 6.871 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000487/0.4582, allocations: 202.4 kB / 427.8 MB, free: 6.676 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002413/0.4584, allocations: 249.8 kB / 428.1 MB, free: 6.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01253/0.471, allocations: 5.922 MB / 434 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03953/0.5105, allocations: 21.1 MB / 455.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009532/0.5201, allocations: 9.951 MB / 465.1 MB, free: 136 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004008/0.5241, allocations: 2.505 MB / 467.6 MB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01163/0.5358, allocations: 6.757 MB / 474.3 MB, free: 6.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.388e-05/0.5358, allocations: 60.52 kB / 474.4 MB, free: 6.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 3.727e-06/0.5359, allocations: 0 / 474.4 MB, free: 6.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=226): time 0.01866/0.5545, allocations: 9.8 MB / 484.2 MB, free: 12.65 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.75e-05/0.5546, allocations: 81.33 kB / 484.3 MB, free: 12.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00478/0.5594, allocations: 2.978 MB / 487.2 MB, free: 9.566 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003016/0.5597, allocations: 65.7 kB / 487.3 MB, free: 9.496 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001596/0.5613, allocations: 2.164 MB / 489.5 MB, free: 7.309 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009869/0.5623, allocations: 0.7702 MB / 490.2 MB, free: 6.527 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001445/0.5625, allocations: 52 kB / 490.3 MB, free: 6.477 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002933/0.5628, allocations: 411.2 kB / 490.7 MB, free: 6.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00208/0.5649, allocations: 1.286 MB / 492 MB, free: 4.781 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00242/0.5673, allocations: 1.924 MB / 493.9 MB, free: 2.594 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002508/0.5698, allocations: 1.599 MB / 495.5 MB, free: 1 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.249e-05/0.5698, allocations: 8 kB / 495.5 MB, free: 0.9922 MB / 398.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.007504/0.5774, allocations: 4.245 MB / 499.8 MB, free: 12.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.277e-05/0.5774, allocations: 15.98 kB / 499.8 MB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.431e-05/0.5774, allocations: 20 kB / 499.8 MB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00245/0.5799, allocations: 0.7673 MB / 0.4888 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002249/0.5822, allocations: 0.5655 MB / 0.4894 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01127/0.5934, allocations: 10.03 MB / 0.4992 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002451/0.5959, allocations: 120 kB / 0.4993 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002493/0.5962, allocations: 100 kB / 0.4994 GB, free: 0.5391 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (278): * Single equations (assignments): 273 * 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 {(3,100.0%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003354/0.5995, allocations: 1.618 MB / 0.501 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000962/0.6005, allocations: 316.2 kB / 0.5013 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007292/0.6078, allocations: 3.922 MB / 0.5051 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.761e-05/0.6079, allocations: 20 kB / 0.5051 GB, free: 10.59 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.935e-05/0.6079, allocations: 12 kB / 0.5051 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.662e-05/0.6079, allocations: 11.95 kB / 0.5051 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01516/0.6231, allocations: 8.578 MB / 0.5135 GB, free: 1.836 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/0.6231, allocations: 4 kB / 0.5135 GB, free: 1.832 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001677/0.6248, allocations: 347.8 kB / 0.5139 GB, free: 1.492 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003039/0.6279, allocations: 0.9456 MB / 0.5148 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002099/0.6281, allocations: 59.98 kB / 0.5148 GB, free: 480 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01691/0.645, allocations: 14.43 MB / 0.5289 GB, free: 1.234 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.645, allocations: 4.031 kB / 0.5289 GB, free: 1.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2184/0.8634, allocations: 5.706 MB / 0.5345 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002109/0.8656, allocations: 0.6914 MB / 0.5352 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005167/0.8661, allocations: 54.12 kB / 0.5352 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/0.8674, allocations: 117.9 kB / 0.5353 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004992/0.8679, allocations: 191.8 kB / 0.5355 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001564/0.8681, allocations: 63.58 kB / 0.5356 GB, free: 135.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003983/0.8721, allocations: 2.047 MB / 0.5376 GB, free: 135.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8721, allocations: 1.062 kB / 0.5376 GB, free: 135.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003964/0.8761, allocations: 0.9505 MB / 0.5385 GB, free: 135.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (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,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 150 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 1,(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.01063/0.8867, allocations: 6.397 MB / 0.5448 GB, free: 132.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007458/0.8942, allocations: 3.901 MB / 0.5486 GB, free: 130.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/0.8942, allocations: 1.5 kB / 0.5486 GB, free: 130.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00408/0.8983, allocations: 2.651 MB / 0.5512 GB, free: 129 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005599/0.904, allocations: 0.8984 MB / 0.552 GB, free: 128.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05925/0.9633, allocations: 29.13 MB / 0.5805 GB, free: 107.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004722/0.968, allocations: 3.434 MB / 0.5838 GB, free: 104.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003145/0.9712, allocations: 0.7606 MB / 0.5846 GB, free: 103.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002736/0.974, allocations: 1.839 MB / 0.5864 GB, free: 101.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.974, allocations: 0 / 0.5864 GB, free: 101.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1087/1.083, allocations: 82.17 MB / 0.6666 GB, free: 20 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001613/1.083, allocations: 299.6 kB / 0.6669 GB, free: 19.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.22/5.303, allocations: 3.125 kB / 0.6669 GB, free: 19.64 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat