Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.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_Steinmetz,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001204/0.001204, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001502/0.001502, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 62.55 kB / 307.1 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1031, 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_Steinmetz): time 0.2018/0.305, allocations: 14.26 MB / 371.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009043/0.3141, allocations: 4.669 MB / 376.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002679/0.3168, allocations: 85.78 kB / 376.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003174/0.32, allocations: 1.015 MB / 377.6 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004491/0.3246, allocations: 1.295 MB / 378.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002624/0.3272, allocations: 0.938 MB / 379.9 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00636/0.3336, allocations: 4.113 MB / 384 MB, free: 6.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00431/0.3379, allocations: 3.236 MB / 387.2 MB, free: 5.297 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003675/0.3416, allocations: 1.892 MB / 389.1 MB, free: 4.402 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004493/0.3461, allocations: 2.211 MB / 391.3 MB, free: 3.387 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001135/0.3473, allocations: 0.5078 MB / 391.8 MB, free: 3.387 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002384/0.3497, allocations: 0.7493 MB / 392.6 MB, free: 3.305 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001023/0.3507, allocations: 1.11 MB / 393.7 MB, free: 2.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003114/0.3538, allocations: 2.148 MB / 395.8 MB, free: 1.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008203/0.362, allocations: 6.715 MB / 402.5 MB, free: 12.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.738e-06/0.3621, allocations: 0 / 402.5 MB, free: 12.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.938e-06/0.3621, allocations: 0 / 402.5 MB, free: 12.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002311/0.3623, allocations: 4 kB / 402.5 MB, free: 12.59 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: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.01416/0.3765, allocations: 4.423 MB / 407 MB, free: 8.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.166e-05/0.3766, allocations: 12.02 kB / 407 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008115/0.3774, allocations: 454.4 kB / 407.4 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004651/0.3821, allocations: 0.8329 MB / 408.3 MB, free: 7.629 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005361/0.3875, allocations: 2.387 MB / 410.6 MB, free: 5.215 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002143/0.3877, allocations: 246.8 kB / 410.9 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007577/0.3885, allocations: 322.4 kB / 411.2 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008565/0.397, allocations: 4.272 MB / 415.5 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.287e-05/0.3971, allocations: 0 / 415.5 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003068/0.3975, allocations: 131.9 kB / 415.6 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001526/0.3976, allocations: 150.4 kB / 415.7 MB, free: 64 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007292/0.4049, allocations: 3.603 MB / 419.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02658/0.4315, allocations: 13.97 MB / 433.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008104/0.4397, allocations: 6.667 MB / 440 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002502/0.4422, allocations: 1.401 MB / 441.4 MB, free: 5.277 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007105/0.4493, allocations: 3.892 MB / 445.3 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.734e-05/0.4494, allocations: 47.86 kB / 445.3 MB, free: 1.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=134): time 3.606e-06/0.4494, allocations: 4 kB / 445.3 MB, free: 1.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=137): time 0.01234/0.4618, allocations: 5.887 MB / 451.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.4618, allocations: 64.72 kB / 451.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003281/0.4651, allocations: 1.802 MB / 453.1 MB, free: 9.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002057/0.4654, allocations: 49.7 kB / 453.1 MB, free: 9.195 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001188/0.4666, allocations: 1.449 MB / 454.6 MB, free: 7.734 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005227/0.4671, allocations: 484.2 kB / 455 MB, free: 7.266 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006131/0.4677, allocations: 323.2 kB / 455.4 MB, free: 6.945 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.4679, allocations: 301.1 kB / 455.7 MB, free: 6.648 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001201/0.4691, allocations: 0.6793 MB / 456.3 MB, free: 5.969 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001654/0.4707, allocations: 1.197 MB / 457.5 MB, free: 4.547 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002895/0.4736, allocations: 2.007 MB / 459.5 MB, free: 2.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.94e-05/0.4737, allocations: 4 kB / 459.5 MB, free: 2.316 MB / 366.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004926/0.4786, allocations: 2.539 MB / 462.1 MB, free: 15.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.713e-05/0.4787, allocations: 12 kB / 462.1 MB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.773e-05/0.4787, allocations: 16 kB / 462.1 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001253/0.48, allocations: 375.3 kB / 462.5 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001482/0.4815, allocations: 379.4 kB / 462.8 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009479/0.491, allocations: 8.402 MB / 471.3 MB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001855/0.4929, allocations: 79.86 kB / 471.3 MB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003016/0.4932, allocations: 76 kB / 471.4 MB, free: 5.863 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 2 (idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * 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 {(1,7,100.0%), (2,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.002649/0.4958, allocations: 1.009 MB / 472.4 MB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000664/0.4965, allocations: 197.6 kB / 472.6 MB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004727/0.5012, allocations: 2.289 MB / 474.9 MB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-05/0.5013, allocations: 16 kB / 474.9 MB, free: 2.277 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-05/0.5013, allocations: 12 kB / 474.9 MB, free: 2.266 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.423e-05/0.5013, allocations: 3.984 kB / 474.9 MB, free: 2.262 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01011/0.5114, allocations: 5.085 MB / 480 MB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/0.5115, allocations: 4 kB / 480 MB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008337/0.5123, allocations: 171.8 kB / 480.2 MB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001474/0.5138, allocations: 0.5394 MB / 480.7 MB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001176/0.514, allocations: 39.98 kB / 480.8 MB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0129/0.5269, allocations: 13.25 MB / 494 MB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.5269, allocations: 4.031 kB / 494 MB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005772/0.5327, allocations: 3.227 MB / 497.2 MB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001502/0.5342, allocations: 426.6 kB / 497.7 MB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007518/0.535, allocations: 35.94 kB / 497.7 MB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001581/0.5366, allocations: 59.95 kB / 497.8 MB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004131/0.537, allocations: 113.1 kB / 497.9 MB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001209/0.5372, allocations: 40.08 kB / 497.9 MB, free: 10.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003138/0.5403, allocations: 1.236 MB / 499.1 MB, free: 9 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5403, allocations: 0 / 499.1 MB, free: 9 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003988/0.5443, allocations: 0.59 MB / 499.7 MB, free: 8.41 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 80 * 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,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,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.006911/0.5513, allocations: 3.836 MB / 0.4918 GB, free: 4.477 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005438/0.5567, allocations: 2.689 MB / 0.4944 GB, free: 1.715 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.5568, allocations: 1.875 kB / 0.4944 GB, free: 1.715 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002638/0.5594, allocations: 1.731 MB / 0.4961 GB, free: 15.91 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00312/0.5625, allocations: 0.5535 MB / 0.4966 GB, free: 15.37 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03981/0.6024, allocations: 22.5 MB / 0.5186 GB, free: 7.074 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00326/0.6057, allocations: 2.315 MB / 0.5209 GB, free: 4.723 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00159/0.6073, allocations: 401.2 kB / 0.5212 GB, free: 4.328 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001634/0.6089, allocations: 1.136 MB / 0.5223 GB, free: 3.195 MB / 446.1 MB Notification: Performance of SimCode: time 8.31e-07/0.6089, allocations: 0 / 0.5223 GB, free: 3.195 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.282/0.8909, allocations: 52.67 MB / 0.5738 GB, free: 118.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/11.38, allocations: 8.156 kB / 0.5738 GB, free: 118.7 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Steinmetz/IMC_Steinmetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches