Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 109.7 kB / 17.06 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 191 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001049/0.001049, allocations: 39.94 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2379/0.2389, allocations: 49.44 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.00408/0.243, allocations: 2.811 MB / 403.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002014/0.2451, allocations: 1.234 MB / 404.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002512/0.2453, allocations: 4 kB / 404.8 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003098/0.2457, allocations: 71.36 kB / 404.8 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007161/0.2464, allocations: 230.7 kB / 405.1 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002931/0.2467, allocations: 111.8 kB / 405.2 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005183/0.2472, allocations: 463 kB / 405.6 MB, free: 3.918 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001802/0.2474, allocations: 89.97 kB / 405.7 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002926/0.2477, allocations: 187.4 kB / 405.9 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003091/0.248, allocations: 227.1 kB / 406.1 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.624e-05/0.2481, allocations: 40 kB / 406.2 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003096/0.2484, allocations: 155.9 kB / 406.3 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.586e-05/0.2485, allocations: 95.7 kB / 406.4 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001883/0.2487, allocations: 183.2 kB / 406.6 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005787/0.2493, allocations: 0.5021 MB / 407.1 MB, free: 2.457 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.2493, allocations: 4 kB / 407.1 MB, free: 2.453 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2493, allocations: 4 kB / 407.1 MB, free: 2.449 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.916e-05/0.2494, allocations: 0 / 407.1 MB, free: 2.449 MB / 318.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.001726/0.2511, allocations: 0.7054 MB / 407.8 MB, free: 1.695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.2511, allocations: 8.031 kB / 407.8 MB, free: 1.688 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.875e-05/0.2512, allocations: 36.56 kB / 407.8 MB, free: 1.652 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004632/0.2517, allocations: 333.2 kB / 408.2 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.272e-05/0.2518, allocations: 46.83 kB / 408.2 MB, free: 1.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001552/0.252, allocations: 40.48 kB / 408.3 MB, free: 1.191 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006654/0.2526, allocations: 320.5 kB / 408.6 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/0.2527, allocations: 0 / 408.6 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.811e-05/0.2527, allocations: 15.98 kB / 408.6 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.2527, allocations: 7.938 kB / 408.6 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007005/0.2534, allocations: 302 kB / 408.9 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001781/0.2552, allocations: 1.156 MB / 410 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005814/0.2558, allocations: 304.3 kB / 410.3 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003189/0.2561, allocations: 169.5 kB / 410.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.2562, allocations: 4 kB / 410.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.2562, allocations: 42.5 kB / 410.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.463e-06/0.2562, allocations: 0 / 410.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.009221/0.2654, allocations: 2.409 MB / 413 MB, free: 12.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.2655, allocations: 85.11 kB / 413 MB, free: 12.19 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003351/0.2659, allocations: 285 kB / 413.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.918e-05/0.2659, allocations: 29.7 kB / 413.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.266, allocations: 176.3 kB / 413.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.2661, allocations: 145.8 kB / 413.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.2663, allocations: 78.11 kB / 413.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.2664, allocations: 342.8 kB / 414.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004012/0.2668, allocations: 160.8 kB / 414.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004399/0.2673, allocations: 234.6 kB / 414.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008243/0.2681, allocations: 403.6 kB / 414.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.2681, allocations: 4 kB / 414.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001013/0.2691, allocations: 492.4 kB / 415.3 MB, free: 9.812 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.2692, allocations: 4 kB / 415.3 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.2692, allocations: 4 kB / 415.3 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.2692, allocations: 7.938 kB / 415.4 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005822/0.2698, allocations: 111.9 kB / 415.5 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.853e-05/0.2698, allocations: 4 kB / 415.5 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003927/0.2702, allocations: 40 kB / 415.5 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.492e-05/0.2703, allocations: 15.98 kB / 415.5 MB, free: 9.629 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.0001625/0.2704, allocations: 161.6 kB / 415.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.2706, allocations: 31.62 kB / 415.7 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001827/0.2724, allocations: 0.6603 MB / 416.4 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.2724, allocations: 4 kB / 416.4 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.2724, allocations: 8 kB / 416.4 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.2724, allocations: 3.984 kB / 416.4 MB, free: 8.742 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003085/0.2755, allocations: 1.268 MB / 417.7 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.2755, allocations: 7.984 kB / 417.7 MB, free: 7.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004482/0.276, allocations: 87.89 kB / 417.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001551/0.2776, allocations: 276.5 kB / 418 MB, free: 7.051 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.907e-05/0.2776, allocations: 12 kB / 418 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003928/0.2815, allocations: 2.439 MB / 420.5 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.2816, allocations: 4.031 kB / 420.5 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002222/0.2838, allocations: 1.004 MB / 421.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00016/0.284, allocations: 148.7 kB / 421.6 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.259e-05/0.284, allocations: 8 kB / 421.6 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004321/0.2845, allocations: 27.97 kB / 421.7 MB, free: 3.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.2846, allocations: 44.33 kB / 421.7 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.015e-05/0.2846, allocations: 15.98 kB / 421.7 MB, free: 3.172 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002064/0.2848, allocations: 220.5 kB / 421.9 MB, free: 2.953 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2849, allocations: 0 / 421.9 MB, free: 2.953 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005692/0.2854, allocations: 112 kB / 422 MB, free: 2.844 MB / 334.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.0003738/0.2858, allocations: 139.1 kB / 422.2 MB, free: 2.699 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009599/0.2868, allocations: 433.9 kB / 422.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.2868, allocations: 0 / 422.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006894/0.2875, allocations: 389.3 kB / 423 MB, free: 1.887 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004735/0.288, allocations: 42.05 kB / 423 MB, free: 1.848 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/0.2897, allocations: 0.9594 MB / 424 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.29, allocations: 0.7891 MB / 424.8 MB, free: 36 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002051/0.2902, allocations: 43 kB / 424.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.2904, allocations: 35.36 kB / 424.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2904, allocations: 0 / 424.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of Templates: time 0.01147/0.3019, allocations: 6.419 MB / 431.3 MB, free: 9.559 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches