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.001057/0.001057, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00118/0.00118, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 227.4 MB / 246.3 MB, free: 9.047 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 61 kB / 306.3 MB, free: 0.7852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1013, allocations: 50.53 MB / 356.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004111/0.1055, allocations: 2.871 MB / 359.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002104/0.1076, allocations: 1.309 MB / 361 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002609/0.1079, allocations: 4 kB / 361 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003224/0.1082, allocations: 67.53 kB / 361.1 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005949/0.1088, allocations: 191 kB / 361.2 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003093/0.1092, allocations: 111.8 kB / 361.3 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004856/0.1097, allocations: 439 kB / 361.8 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001695/0.1098, allocations: 85.22 kB / 361.9 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003706/0.1102, allocations: 171.4 kB / 362 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003335/0.1106, allocations: 207.2 kB / 362.2 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.273e-05/0.1106, allocations: 24 kB / 362.3 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003109/0.111, allocations: 147.9 kB / 362.4 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.244e-05/0.111, allocations: 75.73 kB / 362.5 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001626/0.1112, allocations: 167.1 kB / 362.6 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004803/0.1117, allocations: 0.4906 MB / 363.1 MB, free: 7.902 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1117, allocations: 4 kB / 363.1 MB, free: 7.898 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.1117, allocations: 3.938 kB / 363.1 MB, free: 7.895 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.1117, allocations: 0 / 363.1 MB, free: 7.895 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.001598/0.1133, allocations: 0.7055 MB / 363.8 MB, free: 7.141 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.1134, allocations: 12.03 kB / 363.8 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001964/0.1136, allocations: 48.45 kB / 363.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003761/0.114, allocations: 329.3 kB / 364.2 MB, free: 6.719 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.923e-05/0.114, allocations: 46.83 kB / 364.3 MB, free: 6.668 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00016/0.1142, allocations: 44.39 kB / 364.3 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000606/0.1148, allocations: 324.5 kB / 364.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.1148, allocations: 0 / 364.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.55e-05/0.1149, allocations: 12 kB / 364.6 MB, free: 6.281 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.1149, allocations: 7.938 kB / 364.6 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006617/0.1156, allocations: 306 kB / 364.9 MB, free: 5.973 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.1172, allocations: 1.156 MB / 366.1 MB, free: 4.738 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005796/0.1178, allocations: 293 kB / 366.4 MB, free: 4.434 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003161/0.1181, allocations: 169.6 kB / 366.5 MB, free: 4.262 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.622e-05/0.1182, allocations: 4 kB / 366.6 MB, free: 4.258 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.1182, allocations: 42.55 kB / 366.6 MB, free: 4.207 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.553e-06/0.1182, allocations: 3.938 kB / 366.6 MB, free: 4.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.009407/0.1276, allocations: 2.42 MB / 369 MB, free: 1.707 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.58e-05/0.1277, allocations: 85.11 kB / 369.1 MB, free: 1.605 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003363/0.1281, allocations: 289 kB / 369.4 MB, free: 1.309 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.989e-05/0.1281, allocations: 33.7 kB / 369.4 MB, free: 1.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.1282, allocations: 172.4 kB / 369.6 MB, free: 1.098 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.1284, allocations: 149.8 kB / 369.7 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/0.1285, allocations: 74.11 kB / 369.8 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.1286, allocations: 342.8 kB / 370.1 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004046/0.129, allocations: 160.8 kB / 370.3 MB, free: 380 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004219/0.1295, allocations: 226.7 kB / 370.5 MB, free: 128 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1538/0.2833, allocations: 408.4 kB / 370.9 MB, free: 20.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.2833, allocations: 0.8438 kB / 370.9 MB, free: 20.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001181/0.2845, allocations: 491.1 kB / 371.4 MB, free: 20.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.2845, allocations: 6.562 kB / 371.4 MB, free: 20.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.2845, allocations: 1 kB / 371.4 MB, free: 20.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.2846, allocations: 4.016 kB / 371.4 MB, free: 20.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006373/0.2852, allocations: 119.7 kB / 371.5 MB, free: 20.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/0.2852, allocations: 4.375 kB / 371.5 MB, free: 20.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004532/0.2857, allocations: 36.03 kB / 371.6 MB, free: 20.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.692e-05/0.2858, allocations: 18.08 kB / 371.6 MB, free: 20.52 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.0001872/0.286, allocations: 153.4 kB / 371.7 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.2861, allocations: 36.06 kB / 371.8 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002044/0.2881, allocations: 0.6507 MB / 372.4 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.869e-06/0.2882, allocations: 5.297 kB / 372.4 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/0.2882, allocations: 1.25 kB / 372.4 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.2882, allocations: 3.359 kB / 372.4 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00347/0.2917, allocations: 1.283 MB / 373.7 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.2917, allocations: 4.578 kB / 373.7 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004892/0.2922, allocations: 93.11 kB / 373.8 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001751/0.294, allocations: 263.6 kB / 374.1 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.86e-05/0.294, allocations: 12.98 kB / 374.1 MB, free: 19.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003717/0.2977, allocations: 2.208 MB / 376.3 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.2978, allocations: 5.25 kB / 376.3 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00248/0.3003, allocations: 1.012 MB / 377.3 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002097/0.3005, allocations: 151.9 kB / 377.4 MB, free: 17.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.119e-05/0.3006, allocations: 10.81 kB / 377.5 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005171/0.3011, allocations: 24.45 kB / 377.5 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.3013, allocations: 43.23 kB / 377.5 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-05/0.3013, allocations: 14.83 kB / 377.5 MB, free: 17.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002587/0.3016, allocations: 213.1 kB / 377.7 MB, free: 16.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3016, allocations: 1.125 kB / 377.7 MB, free: 16.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006473/0.3022, allocations: 113.9 kB / 377.9 MB, free: 16.94 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.0002818/0.3025, allocations: 147.5 kB / 378 MB, free: 16.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001011/0.3035, allocations: 430.1 kB / 378.4 MB, free: 16.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3036, allocations: 1.219 kB / 378.4 MB, free: 16.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006894/0.3043, allocations: 381 kB / 378.8 MB, free: 16.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005725/0.3048, allocations: 39.42 kB / 378.8 MB, free: 16.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001771/0.3066, allocations: 1.1 MB / 379.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/0.3069, allocations: 0.7867 MB / 380.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002585/0.3072, allocations: 41.83 kB / 380.8 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.3074, allocations: 38.39 kB / 380.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3074, allocations: 0 / 380.8 MB, free: 15.07 MB / 302.1 MB Notification: Performance of Templates: time 0.01238/0.3197, allocations: 5.933 MB / 386.7 MB, free: 13.5 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