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.001375/0.001375, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001591/0.001591, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.2819, allocations: 50.55 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.00531/0.2873, allocations: 2.839 MB / 411.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00279/0.2901, allocations: 1.289 MB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003725/0.2905, allocations: 4 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003857/0.291, allocations: 71.34 kB / 413 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000929/0.2919, allocations: 218.8 kB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000454/0.2924, allocations: 135.7 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007503/0.2932, allocations: 463 kB / 413.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002498/0.2934, allocations: 88.69 kB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004417/0.2939, allocations: 187.4 kB / 414 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004333/0.2943, allocations: 223.1 kB / 414.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.309e-05/0.2944, allocations: 40 kB / 414.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003683/0.2948, allocations: 167.9 kB / 414.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.2949, allocations: 99.66 kB / 414.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002465/0.2952, allocations: 179.2 kB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009073/0.2961, allocations: 0.5127 MB / 415.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.2961, allocations: 4 kB / 415.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2961, allocations: 0 / 415.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.2961, allocations: 0 / 415.2 MB, free: 11.03 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.00206/0.2982, allocations: 0.7168 MB / 416 MB, free: 10.26 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.2983, allocations: 12.03 kB / 416 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000152/0.2984, allocations: 62.67 kB / 416 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002275/0.2987, allocations: 48.73 kB / 416.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00061/0.2993, allocations: 341.3 kB / 416.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.928e-05/0.2994, allocations: 50.81 kB / 416.5 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001774/0.2996, allocations: 44.3 kB / 416.5 MB, free: 9.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006868/0.3003, allocations: 312.5 kB / 416.8 MB, free: 9.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.3003, allocations: 3.984 kB / 416.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.622e-05/0.3003, allocations: 12 kB / 416.8 MB, free: 9.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.3004, allocations: 8 kB / 416.8 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007275/0.3011, allocations: 302 kB / 417.1 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001967/0.3031, allocations: 1.16 MB / 418.3 MB, free: 7.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006431/0.3037, allocations: 289 kB / 418.6 MB, free: 7.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003353/0.3041, allocations: 161.6 kB / 418.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.894e-05/0.3041, allocations: 7.984 kB / 418.7 MB, free: 7.309 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.3041, allocations: 38.56 kB / 418.8 MB, free: 7.262 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 4.148e-06/0.3042, allocations: 0 / 418.8 MB, free: 7.262 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.009946/0.3141, allocations: 2.431 MB / 421.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.982e-05/0.3142, allocations: 85.09 kB / 421.3 MB, free: 4.652 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004338/0.3147, allocations: 289 kB / 421.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.736e-05/0.3147, allocations: 29.7 kB / 421.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.3149, allocations: 180.6 kB / 421.8 MB, free: 4.148 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.315, allocations: 154.6 kB / 421.9 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001718/0.3152, allocations: 78.11 kB / 422 MB, free: 3.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.3154, allocations: 342.8 kB / 422.3 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004246/0.3158, allocations: 160.8 kB / 422.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004507/0.3163, allocations: 234.6 kB / 422.7 MB, free: 3.164 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008708/0.3172, allocations: 399.8 kB / 423.1 MB, free: 2.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3172, allocations: 0 / 423.1 MB, free: 2.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001111/0.3183, allocations: 492.4 kB / 423.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.3183, allocations: 4 kB / 423.6 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.3184, allocations: 4 kB / 423.6 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.295e-05/0.3184, allocations: 4 kB / 423.6 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006387/0.319, allocations: 120 kB / 423.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.635e-05/0.3191, allocations: 4 kB / 423.7 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004198/0.3195, allocations: 35.97 kB / 423.8 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.14e-05/0.3195, allocations: 15.98 kB / 423.8 MB, free: 2.082 MB / 334.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.0002104/0.3198, allocations: 153.7 kB / 423.9 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.3199, allocations: 35.75 kB / 424 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001982/0.3219, allocations: 0.6603 MB / 424.6 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.3219, allocations: 4 kB / 424.6 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.3219, allocations: 4 kB / 424.6 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.3219, allocations: 3.984 kB / 424.6 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003507/0.3254, allocations: 1.276 MB / 425.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.3255, allocations: 0 / 425.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000478/0.3259, allocations: 87.83 kB / 426 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001731/0.3277, allocations: 272.5 kB / 426.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.224e-05/0.3277, allocations: 12 kB / 426.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004547/0.3323, allocations: 2.451 MB / 428.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3323, allocations: 0 / 428.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00251/0.3348, allocations: 1.015 MB / 429.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002231/0.3351, allocations: 144.8 kB / 429.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.187e-05/0.3352, allocations: 15.98 kB / 429.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004811/0.3356, allocations: 23.98 kB / 429.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.3358, allocations: 36.39 kB / 430 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.838e-05/0.3358, allocations: 23.92 kB / 430 MB, free: 11.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002677/0.3361, allocations: 212.5 kB / 430.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3361, allocations: 0 / 430.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005937/0.3367, allocations: 115.9 kB / 430.3 MB, free: 11.29 MB / 350.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.00305/0.3398, allocations: 1.59 MB / 431.9 MB, free: 9.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.3408, allocations: 433.9 kB / 432.3 MB, free: 9.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3409, allocations: 0 / 432.3 MB, free: 9.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007639/0.3416, allocations: 389.3 kB / 432.7 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005355/0.3422, allocations: 38.83 kB / 432.7 MB, free: 8.824 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00645/0.3486, allocations: 3.866 MB / 436.6 MB, free: 4.828 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00056/0.3492, allocations: 0.7852 MB / 437.4 MB, free: 4.012 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002203/0.3495, allocations: 42.94 kB / 437.4 MB, free: 3.973 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002451/0.3497, allocations: 126.9 kB / 437.5 MB, free: 3.852 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3497, allocations: 0 / 437.5 MB, free: 3.852 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04295/0.3927, allocations: 9.706 MB / 447.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.77, allocations: 6.359 kB / 447.3 MB, free: 10.35 MB / 366.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.1.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