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.001165/0.001166, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001264/0.001264, allocations: 212.6 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001216, allocations: 59.72 kB / 307.1 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0959/0.09714, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.2099/0.307, allocations: 17.43 MB / 375 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01406/0.3212, allocations: 5.957 MB / 381 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005412/0.3266, allocations: 114 kB / 381.1 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005389/0.332, allocations: 1.347 MB / 382.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007906/0.34, allocations: 1.764 MB / 384.2 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003952/0.344, allocations: 1.091 MB / 385.3 MB, free: 7.148 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01189/0.3559, allocations: 6.305 MB / 391.6 MB, free: 3.992 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01196/0.3679, allocations: 5.39 MB / 397 MB, free: 1.754 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007882/0.3759, allocations: 2.936 MB / 399.9 MB, free: 332 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006823/0.3827, allocations: 3.457 MB / 403.4 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002486/0.3853, allocations: 0.7899 MB / 404.2 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003982/0.3893, allocations: 1.101 MB / 405.3 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002902/0.3922, allocations: 1.862 MB / 407.1 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007418/0.3996, allocations: 3.365 MB / 410.5 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01533/0.415, allocations: 10.48 MB / 421 MB, free: 12.83 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.186e-05/0.4151, allocations: 0 / 421 MB, free: 12.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.4151, allocations: 0 / 421 MB, free: 12.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004558/0.4156, allocations: 3.938 kB / 421 MB, free: 12.83 MB / 334.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.02508/0.4407, allocations: 6.568 MB / 427.6 MB, free: 6.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.938e-05/0.4407, allocations: 8.031 kB / 427.6 MB, free: 6.172 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003181/0.4439, allocations: 0.6789 MB / 428.2 MB, free: 5.484 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006953/0.4509, allocations: 1.087 MB / 429.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008999/0.4599, allocations: 3.579 MB / 432.9 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004145/0.4604, allocations: 365.7 kB / 433.3 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001936/0.4624, allocations: 492 kB / 433.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01666/0.479, allocations: 6.873 MB / 440.6 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001125/0.4792, allocations: 0 / 440.6 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005413/0.4798, allocations: 200 kB / 440.8 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002608/0.48, allocations: 241.8 kB / 441.1 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01393/0.494, allocations: 5.937 MB / 447 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04758/0.5416, allocations: 21.01 MB / 468 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01181/0.5535, allocations: 9.97 MB / 478 MB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004806/0.5583, allocations: 2.493 MB / 480.5 MB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01363/0.572, allocations: 6.743 MB / 487.2 MB, free: 8.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.207e-05/0.572, allocations: 60.56 kB / 487.3 MB, free: 8.609 MB / 398.1 MB Notification: Performance of pre-optimization done (n=219): time 4.228e-06/0.5721, allocations: 0 / 487.3 MB, free: 8.609 MB / 398.1 MB Notification: Performance of matching and sorting (n=226): time 0.01957/0.5916, allocations: 9.679 MB / 496.9 MB, free: 14.72 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/0.5917, allocations: 81.41 kB / 497 MB, free: 14.63 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005669/0.5974, allocations: 3.01 MB / 0.4883 GB, free: 11.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004108/0.5978, allocations: 69.7 kB / 0.4884 GB, free: 11.53 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001807/0.5997, allocations: 2.172 MB / 0.4905 GB, free: 9.336 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009349/0.6006, allocations: 0.7548 MB / 0.4912 GB, free: 8.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001047/0.6017, allocations: 469 kB / 0.4917 GB, free: 8.105 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.6018, allocations: 305.1 kB / 0.492 GB, free: 7.805 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002333/0.6042, allocations: 1.297 MB / 0.4932 GB, free: 6.504 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002753/0.6069, allocations: 1.924 MB / 0.4951 GB, free: 4.316 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005168/0.6121, allocations: 3.336 MB / 0.4984 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.201e-05/0.6122, allocations: 8 kB / 0.4984 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.007491/0.6197, allocations: 4.241 MB / 0.5025 GB, free: 12.44 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.017e-05/0.6197, allocations: 16.06 kB / 0.5025 GB, free: 12.42 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.213e-05/0.6198, allocations: 20 kB / 0.5026 GB, free: 12.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002546/0.6223, allocations: 0.7686 MB / 0.5033 GB, free: 11.62 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002322/0.6246, allocations: 0.5694 MB / 0.5039 GB, free: 11.05 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01157/0.6362, allocations: 10.89 MB / 0.5145 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00231/0.6386, allocations: 103.9 kB / 0.5146 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003766/0.639, allocations: 104 kB / 0.5147 GB, free: 15.41 MB / 446.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 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * 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 (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00295/0.6419, allocations: 1.621 MB / 0.5163 GB, free: 13.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007958/0.6427, allocations: 316.2 kB / 0.5166 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007021/0.6498, allocations: 3.91 MB / 0.5204 GB, free: 9.477 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.746e-05/0.6498, allocations: 20 kB / 0.5204 GB, free: 9.457 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.642e-05/0.6498, allocations: 12 kB / 0.5204 GB, free: 9.445 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-05/0.6499, allocations: 11.95 kB / 0.5204 GB, free: 9.434 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01579/0.6657, allocations: 8.559 MB / 0.5288 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.364e-05/0.6657, allocations: 8 kB / 0.5288 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001516/0.6672, allocations: 347.8 kB / 0.5291 GB, free: 388 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.179/0.8463, allocations: 0.9438 MB / 0.5301 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004815/0.8468, allocations: 63.75 kB / 0.5301 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01406/0.8609, allocations: 15.76 MB / 0.5455 GB, free: 128.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/0.8609, allocations: 7.109 kB / 0.5455 GB, free: 128.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009648/0.8706, allocations: 5.685 MB / 0.5511 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001923/0.8725, allocations: 0.6871 MB / 0.5517 GB, free: 125.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006267/0.8732, allocations: 61.72 kB / 0.5518 GB, free: 125.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001494/0.8747, allocations: 106.2 kB / 0.5519 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006668/0.8754, allocations: 188.7 kB / 0.5521 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001598/0.8755, allocations: 59.61 kB / 0.5521 GB, free: 125.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003708/0.8792, allocations: 2.081 MB / 0.5542 GB, free: 124.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.8793, allocations: 3.281 kB / 0.5542 GB, free: 124.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005178/0.8844, allocations: 0.9495 MB / 0.5551 GB, free: 124.6 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 (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,8,100.0%), (3,25,88.9%), (1,1,100.0%), (1,8,100.0%), (1,13,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0118/0.8963, allocations: 6.423 MB / 0.5614 GB, free: 121.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01007/0.9064, allocations: 5.366 MB / 0.5666 GB, free: 119.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.575e-06/0.9064, allocations: 7.781 kB / 0.5666 GB, free: 119.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003383/0.9098, allocations: 2.635 MB / 0.5692 GB, free: 118.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0037/0.9135, allocations: 0.9304 MB / 0.5701 GB, free: 118 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04299/0.9565, allocations: 40.03 MB / 0.6092 GB, free: 76.85 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002599/0.9592, allocations: 3.438 MB / 0.6126 GB, free: 73.38 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003044/0.9622, allocations: 0.7606 MB / 0.6133 GB, free: 72.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002622/0.9649, allocations: 1.847 MB / 0.6151 GB, free: 70.76 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.9649, allocations: 0 / 0.6151 GB, free: 70.76 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1461/1.111, allocations: 86.99 MB / 0.7001 GB, free: 400 kB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.88, allocations: 4.375 kB / 0.7001 GB, free: 396 kB / 462.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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches