Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001421/0.001421, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001692/0.001692, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 60.25 kB / 307.1 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08875/0.09001, allocations: 50.53 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004343/0.09438, allocations: 2.829 MB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0021/0.09651, allocations: 1.285 MB / 361.7 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002297/0.09676, allocations: 7.938 kB / 361.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002799/0.09707, allocations: 71.36 kB / 361.8 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006072/0.09769, allocations: 223 kB / 362 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000329/0.09803, allocations: 135.7 kB / 362.1 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004848/0.09853, allocations: 455 kB / 362.6 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001751/0.09871, allocations: 84.66 kB / 362.7 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003471/0.09907, allocations: 195.4 kB / 362.8 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003165/0.09939, allocations: 215.2 kB / 363.1 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.783e-05/0.09948, allocations: 40 kB / 363.1 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003161/0.0998, allocations: 167.9 kB / 363.3 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.488e-05/0.0999, allocations: 95.66 kB / 363.4 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000193/0.1001, allocations: 191.1 kB / 363.5 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005698/0.1007, allocations: 0.4945 MB / 364 MB, free: 7.492 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.1007, allocations: 0 / 364 MB, free: 7.492 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1007, allocations: 0 / 364 MB, free: 7.492 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.1007, allocations: 0 / 364 MB, free: 7.492 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001707/0.1024, allocations: 0.7093 MB / 364.7 MB, free: 6.734 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.1025, allocations: 12.03 kB / 364.8 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.469e-05/0.1026, allocations: 62.72 kB / 364.8 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001937/0.1028, allocations: 48.45 kB / 364.9 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004084/0.1032, allocations: 325.3 kB / 365.2 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.223e-05/0.1033, allocations: 54.77 kB / 365.2 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001545/0.1034, allocations: 48.23 kB / 365.3 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005875/0.104, allocations: 316.5 kB / 365.6 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.104, allocations: 4 kB / 365.6 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.216e-05/0.1041, allocations: 8 kB / 365.6 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.1041, allocations: 8 kB / 365.6 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006692/0.1048, allocations: 302 kB / 365.9 MB, free: 5.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00171/0.1065, allocations: 1.171 MB / 367.1 MB, free: 4.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006235/0.1071, allocations: 297 kB / 367.4 MB, free: 3.941 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003273/0.1075, allocations: 169.5 kB / 367.5 MB, free: 3.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.1075, allocations: 4 kB / 367.5 MB, free: 3.766 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.1075, allocations: 38.56 kB / 367.6 MB, free: 3.719 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.603e-06/0.1075, allocations: 0 / 367.6 MB, free: 3.719 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.009389/0.1169, allocations: 2.411 MB / 370 MB, free: 1.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.117, allocations: 89.05 kB / 370.1 MB, free: 1.125 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003238/0.1173, allocations: 292.9 kB / 370.4 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.739e-05/0.1174, allocations: 37.64 kB / 370.4 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.1175, allocations: 172.4 kB / 370.6 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.1176, allocations: 141.9 kB / 370.7 MB, free: 480 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.1178, allocations: 82.11 kB / 370.8 MB, free: 392 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.1179, allocations: 342.7 kB / 371.1 MB, free: 40 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1351/0.2529, allocations: 158.5 kB / 371.3 MB, free: 20.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004433/0.2534, allocations: 232.5 kB / 371.5 MB, free: 20.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008149/0.2543, allocations: 404.1 kB / 371.9 MB, free: 20 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.2543, allocations: 0.6562 kB / 371.9 MB, free: 20 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001041/0.2553, allocations: 487.8 kB / 372.4 MB, free: 19.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.2553, allocations: 6.484 kB / 372.4 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.2554, allocations: 1.844 kB / 372.4 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.2554, allocations: 4.047 kB / 372.4 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006283/0.256, allocations: 116.8 kB / 372.5 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.256, allocations: 7.703 kB / 372.5 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003987/0.2564, allocations: 38.38 kB / 372.5 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.608e-05/0.2565, allocations: 13.86 kB / 372.6 MB, free: 19.96 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001598/0.2567, allocations: 157.6 kB / 372.7 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.17e-05/0.2567, allocations: 29.94 kB / 372.7 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001862/0.2586, allocations: 0.6568 MB / 373.4 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.2586, allocations: 5.938 kB / 373.4 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.2586, allocations: 0 / 373.4 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.2587, allocations: 3.625 kB / 373.4 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003082/0.2617, allocations: 1.271 MB / 374.7 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.2618, allocations: 4.906 kB / 374.7 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000453/0.2622, allocations: 90.11 kB / 374.8 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001571/0.2638, allocations: 277.1 kB / 375 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.458e-05/0.2639, allocations: 10.97 kB / 375.1 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003576/0.2674, allocations: 2.438 MB / 377.5 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.2675, allocations: 1.344 kB / 377.5 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002147/0.2696, allocations: 1.009 MB / 378.5 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001472/0.2698, allocations: 150.6 kB / 378.6 MB, free: 16.47 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.889e-05/0.2698, allocations: 14.75 kB / 378.7 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004558/0.2703, allocations: 25 kB / 378.7 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.2704, allocations: 42.17 kB / 378.7 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.198e-05/0.2705, allocations: 19.39 kB / 378.7 MB, free: 16.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000204/0.2707, allocations: 208.8 kB / 378.9 MB, free: 16.31 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2707, allocations: 0 / 378.9 MB, free: 16.31 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005657/0.2712, allocations: 118.3 kB / 379.1 MB, free: 16.29 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002397/0.2737, allocations: 1.597 MB / 380.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.2747, allocations: 443.9 kB / 381.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2747, allocations: 0 / 381.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006271/0.2753, allocations: 383 kB / 381.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005186/0.2759, allocations: 49.53 kB / 381.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004946/0.2808, allocations: 3.868 MB / 385.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002134/0.2811, allocations: 0.7865 MB / 386.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002223/0.2813, allocations: 45.38 kB / 386.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001981/0.2815, allocations: 116.2 kB / 386.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2815, allocations: 0 / 386.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02802/0.3095, allocations: 9.587 MB / 395.9 MB, free: 7.914 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.26, allocations: 7.609 kB / 395.9 MB, free: 7.91 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 4e-06 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches