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: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding.i",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding.i",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008561/0.0008562, allocations: 93.78 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008195/0.0008195, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.7 MB / 246.8 MB, free: 11.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002193/0.0002193, allocations: 4 kB / 307.7 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1023, allocations: 51.53 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.003003/0.1054, allocations: 2.513 MB / 361.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002065/0.1074, allocations: 1.289 MB / 363.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001978/0.1077, allocations: 7.938 kB / 363.1 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002705/0.1079, allocations: 55.62 kB / 363.1 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000579/0.1085, allocations: 195 kB / 363.3 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002736/0.1088, allocations: 107.9 kB / 363.4 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000418/0.1092, allocations: 439 kB / 363.9 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.1094, allocations: 77.36 kB / 363.9 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002418/0.1097, allocations: 163.5 kB / 364.1 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002546/0.1099, allocations: 199.2 kB / 364.3 MB, free: 8.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.823e-05/0.11, allocations: 24 kB / 364.3 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002603/0.1102, allocations: 143.9 kB / 364.5 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.607e-05/0.1103, allocations: 71.73 kB / 364.5 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001543/0.1105, allocations: 192.7 kB / 364.7 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004505/0.1109, allocations: 490.2 kB / 365.2 MB, free: 7.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.111, allocations: 0 / 365.2 MB, free: 7.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.111, allocations: 4 kB / 365.2 MB, free: 7.336 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.111, allocations: 0 / 365.2 MB, free: 7.336 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.001424/0.1124, allocations: 0.6588 MB / 365.9 MB, free: 6.629 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.1124, allocations: 12.03 kB / 365.9 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000181/0.1126, allocations: 48.45 kB / 365.9 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003714/0.113, allocations: 333.2 kB / 366.2 MB, free: 6.203 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.101e-05/0.1131, allocations: 46.83 kB / 366.3 MB, free: 6.152 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/0.1132, allocations: 40.48 kB / 366.3 MB, free: 6.113 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00059/0.1138, allocations: 336.4 kB / 366.7 MB, free: 5.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.1139, allocations: 0 / 366.7 MB, free: 5.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.441e-05/0.1139, allocations: 12 kB / 366.7 MB, free: 5.758 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.1139, allocations: 8 kB / 366.7 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006815/0.1146, allocations: 314 kB / 367 MB, free: 5.441 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001637/0.1163, allocations: 1.175 MB / 368.2 MB, free: 4.188 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005963/0.1169, allocations: 303.4 kB / 368.5 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003295/0.1172, allocations: 169.6 kB / 368.6 MB, free: 3.703 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.1172, allocations: 4 kB / 368.6 MB, free: 3.699 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.1173, allocations: 42.55 kB / 368.7 MB, free: 3.648 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.432e-06/0.1173, allocations: 0 / 368.7 MB, free: 3.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.009571/0.1269, allocations: 2.53 MB / 371.2 MB, free: 1.043 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.1269, allocations: 85.11 kB / 371.3 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003379/0.1273, allocations: 292.9 kB / 371.6 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.428e-05/0.1273, allocations: 33.7 kB / 371.6 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.1274, allocations: 172.4 kB / 371.8 MB, free: 440 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.1276, allocations: 145.8 kB / 371.9 MB, free: 292 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.723e-05/0.1276, allocations: 41.69 kB / 372 MB, free: 244 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1564/0.2841, allocations: 338.8 kB / 372.3 MB, free: 19.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006245/0.2847, allocations: 175.7 kB / 372.5 MB, free: 19.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004992/0.2852, allocations: 239.4 kB / 372.7 MB, free: 19.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008601/0.2861, allocations: 430 kB / 373.1 MB, free: 19.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2861, allocations: 0.9688 kB / 373.1 MB, free: 19.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001094/0.2872, allocations: 0.4944 MB / 373.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.2872, allocations: 5.125 kB / 373.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.2873, allocations: 2.062 kB / 373.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.2873, allocations: 8.938 kB / 373.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000649/0.2879, allocations: 123.4 kB / 373.7 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.288, allocations: 8.656 kB / 373.8 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004173/0.2884, allocations: 40.45 kB / 373.8 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.072e-05/0.2884, allocations: 18.67 kB / 373.8 MB, free: 19.1 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.000174/0.2886, allocations: 147.3 kB / 374 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.163e-05/0.2887, allocations: 30.8 kB / 374 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002091/0.2908, allocations: 0.6877 MB / 374.7 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-06/0.2908, allocations: 4.969 kB / 374.7 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.2908, allocations: 0.875 kB / 374.7 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.2909, allocations: 7.688 kB / 374.7 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003319/0.2942, allocations: 1.322 MB / 376 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.2942, allocations: 2.969 kB / 376 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004367/0.2946, allocations: 89.02 kB / 376.1 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0018/0.2964, allocations: 290.1 kB / 376.4 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.673e-05/0.2965, allocations: 13.53 kB / 376.4 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003687/0.3002, allocations: 2.284 MB / 378.7 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.3002, allocations: 2.078 kB / 378.7 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002373/0.3026, allocations: 1.049 MB / 379.7 MB, free: 16.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001469/0.3027, allocations: 153 kB / 379.9 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.457e-05/0.3028, allocations: 12.73 kB / 379.9 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004646/0.3033, allocations: 28.88 kB / 379.9 MB, free: 16.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.3034, allocations: 40.5 kB / 380 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.305e-05/0.3034, allocations: 18.83 kB / 380 MB, free: 16.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002112/0.3037, allocations: 214.3 kB / 380.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3037, allocations: 0 / 380.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005789/0.3043, allocations: 118.4 kB / 380.3 MB, free: 15.91 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.0002371/0.3045, allocations: 136.1 kB / 380.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000955/0.3055, allocations: 452.4 kB / 380.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.706e-06/0.3055, allocations: 0 / 380.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000662/0.3061, allocations: 395.6 kB / 381.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005341/0.3067, allocations: 36.33 kB / 381.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.3084, allocations: 1.226 MB / 382.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002245/0.3086, allocations: 0.7912 MB / 383.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002127/0.3088, allocations: 46 kB / 383.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/0.309, allocations: 33.61 kB / 383.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.309, allocations: 0 / 383.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of Templates: time 0.01023/0.3192, allocations: 5.894 MB / 389.3 MB, free: 12.19 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.makefile (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 & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins/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