Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.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.Components.EddyCurrentLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001838/0.001838, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002349/0.00235, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.519/1.519, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001819/0.001819, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2962, allocations: 50.52 MB / 408.7 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.009732/0.3059, allocations: 7.866 MB / 416.6 MB, free: 9.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005306/0.3113, allocations: 2.472 MB / 419.1 MB, free: 7.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001154/0.3124, allocations: 55.75 kB / 419.1 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001098/0.3136, allocations: 448.9 kB / 419.6 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002379/0.316, allocations: 0.8509 MB / 420.4 MB, free: 5.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.317, allocations: 401.5 kB / 420.8 MB, free: 5.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004125/0.3211, allocations: 3.25 MB / 424.1 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0033/0.3245, allocations: 2.899 MB / 427 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001885/0.3264, allocations: 1.414 MB / 428.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002516/0.3289, allocations: 1.701 MB / 430.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006479/0.3296, allocations: 356 kB / 430.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001031/0.3306, allocations: 491.9 kB / 430.9 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008278/0.3314, allocations: 0.8999 MB / 431.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001923/0.3334, allocations: 1.625 MB / 433.4 MB, free: 8.688 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005219/0.3386, allocations: 4.705 MB / 438.1 MB, free: 3.969 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.709e-06/0.3386, allocations: 4 kB / 438.1 MB, free: 3.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3387, allocations: 3.938 kB / 438.2 MB, free: 3.961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001169/0.3388, allocations: 0 / 438.2 MB, free: 3.961 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 689 * Number of variables: 689 Notification: Performance of Generate backend data structure: time 0.008633/0.3474, allocations: 3.719 MB / 441.9 MB, free: 180 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.3475, allocations: 8.031 kB / 441.9 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007104/0.3482, allocations: 445 kB / 442.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004074/0.3523, allocations: 0.7601 MB / 443.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003606/0.3559, allocations: 1.852 MB / 444.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001709/0.3561, allocations: 201.7 kB / 445.1 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004717/0.3566, allocations: 267.9 kB / 445.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006177/0.3628, allocations: 3.619 MB / 449 MB, free: 8.918 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.658e-05/0.3628, allocations: 3.984 kB / 449 MB, free: 8.914 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002499/0.3631, allocations: 104 kB / 449.1 MB, free: 8.812 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001012/0.3632, allocations: 109.4 kB / 449.2 MB, free: 8.703 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005373/0.3686, allocations: 3.097 MB / 452.3 MB, free: 5.594 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01691/0.3855, allocations: 10.27 MB / 462.6 MB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005604/0.3911, allocations: 4.565 MB / 467.2 MB, free: 5.762 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001503/0.3927, allocations: 0.9579 MB / 468.1 MB, free: 4.805 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004743/0.3974, allocations: 2.632 MB / 470.7 MB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.896e-05/0.3975, allocations: 55.36 kB / 470.8 MB, free: 1.965 MB / 382.1 MB Notification: Performance of pre-optimization done (n=104): time 3.367e-06/0.3975, allocations: 0 / 470.8 MB, free: 1.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=104): time 0.006701/0.4043, allocations: 2.661 MB / 473.5 MB, free: 15.26 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.913e-05/0.4043, allocations: 93.92 kB / 473.5 MB, free: 15.14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002159/0.4065, allocations: 1.404 MB / 475 MB, free: 13.73 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001122/0.4066, allocations: 49.7 kB / 475 MB, free: 13.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009637/0.4076, allocations: 1.207 MB / 476.2 MB, free: 12.46 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004358/0.4081, allocations: 372.8 kB / 476.6 MB, free: 12.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000349/0.4084, allocations: 218.9 kB / 476.8 MB, free: 11.87 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.4086, allocations: 361.9 kB / 477.1 MB, free: 11.51 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001034/0.4096, allocations: 0.5608 MB / 477.7 MB, free: 10.95 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.4109, allocations: 0.8452 MB / 478.5 MB, free: 9.992 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002297/0.4132, allocations: 1.461 MB / 480 MB, free: 8.414 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.4133, allocations: 0 / 480 MB, free: 8.414 MB / 398.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003874/0.4171, allocations: 1.969 MB / 482 MB, free: 6.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.4172, allocations: 8 kB / 482 MB, free: 6.422 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.752e-05/0.4172, allocations: 8 kB / 482 MB, free: 6.414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/0.4182, allocations: 401.2 kB / 482.4 MB, free: 6.016 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008417/0.4191, allocations: 215.7 kB / 482.6 MB, free: 5.805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008686/0.4278, allocations: 6.543 MB / 489.1 MB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/0.429, allocations: 143.2 kB / 489.3 MB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.4291, allocations: 47.98 kB / 489.3 MB, free: 14.8 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (110): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,19,100.0%), (2,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001724/0.4308, allocations: 0.8758 MB / 490.2 MB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003413/0.4312, allocations: 143.1 kB / 490.3 MB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003278/0.4344, allocations: 1.652 MB / 492 MB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.4345, allocations: 12 kB / 492 MB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.4345, allocations: 8 kB / 492 MB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/0.4345, allocations: 11.91 kB / 492 MB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007384/0.4419, allocations: 3.915 MB / 495.9 MB, free: 8.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.4419, allocations: 4 kB / 495.9 MB, free: 8.066 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005859/0.4425, allocations: 132 kB / 496.1 MB, free: 7.938 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009934/0.4435, allocations: 401.3 kB / 496.5 MB, free: 7.539 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-05/0.4436, allocations: 35.97 kB / 496.5 MB, free: 7.504 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008534/0.4522, allocations: 6.515 MB / 0.4912 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/0.4522, allocations: 4 kB / 0.4912 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004439/0.4566, allocations: 2.486 MB / 0.4937 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007187/0.4574, allocations: 259.9 kB / 0.4939 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001614/0.4576, allocations: 24 kB / 0.4939 GB, free: 13.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008112/0.4584, allocations: 87.84 kB / 0.494 GB, free: 13.8 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003068/0.4587, allocations: 92.73 kB / 0.4941 GB, free: 13.71 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.536e-05/0.4588, allocations: 35.98 kB / 0.4941 GB, free: 13.67 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001547/0.4603, allocations: 0.9795 MB / 0.4951 GB, free: 12.69 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4604, allocations: 0 / 0.4951 GB, free: 12.69 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002016/0.4624, allocations: 0.6852 MB / 0.4958 GB, free: 12 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (converter_e.singlePhaseElectroMagneticConverter[3].Phi.re,converter_e.singlePhaseElectroMagneticConverter[3].Phi.im,loss_m.Phi.re,loss_m.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,21,100.0%), (2,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004675/0.4671, allocations: 3.103 MB / 0.4988 GB, free: 8.848 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003595/0.4707, allocations: 1.781 MB / 0.5005 GB, free: 7.039 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.752e-06/0.4707, allocations: 0 / 0.5005 GB, free: 7.039 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002058/0.4728, allocations: 1.142 MB / 0.5016 GB, free: 5.871 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001703/0.4745, allocations: 300.6 kB / 0.5019 GB, free: 5.578 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02719/0.5017, allocations: 16.07 MB / 0.5176 GB, free: 5.023 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002263/0.504, allocations: 2.192 MB / 0.5198 GB, free: 2.793 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001082/0.5051, allocations: 343 kB / 0.5201 GB, free: 2.453 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00119/0.5063, allocations: 0.8742 MB / 0.5209 GB, free: 1.578 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5063, allocations: 0 / 0.5209 GB, free: 1.578 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2937/0.8, allocations: 38.93 MB / 0.559 GB, free: 116 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.08/13.88, allocations: 7.25 kB / 0.559 GB, free: 116 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.csv --start-time 0 --stop-time 40 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/Components/EddyCurrentLosses/EddyCurrentLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches