Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001056/0.001056, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 226.6 MB / 244.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009805/0.0009808, allocations: 105.4 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002965/0.0002966, allocations: 7.984 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.294, allocations: 51.28 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.002271/0.2963, allocations: 2.42 MB / 409.9 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001458/0.2978, allocations: 1.176 MB / 411.1 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001469/0.298, allocations: 4 kB / 411.1 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002054/0.2982, allocations: 47.56 kB / 411.1 MB, free: 24.19 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003955/0.2986, allocations: 190.4 kB / 411.3 MB, free: 24.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002086/0.2988, allocations: 89.97 kB / 411.4 MB, free: 23.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00031/0.2991, allocations: 403 kB / 411.8 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001615/0.2993, allocations: 69.36 kB / 411.9 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002507/0.2996, allocations: 167.3 kB / 412 MB, free: 23.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002112/0.2998, allocations: 203.3 kB / 412.2 MB, free: 23.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.845e-05/0.2998, allocations: 20 kB / 412.3 MB, free: 23.08 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002488/0.3001, allocations: 139.9 kB / 412.4 MB, free: 22.94 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.927e-05/0.3002, allocations: 75.72 kB / 412.5 MB, free: 22.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.422e-05/0.3002, allocations: 77.58 kB / 412.5 MB, free: 22.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003041/0.3005, allocations: 379.8 kB / 412.9 MB, free: 22.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.83e-06/0.3005, allocations: 0 / 412.9 MB, free: 22.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3006, allocations: 0 / 412.9 MB, free: 22.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.3006, allocations: 0 / 412.9 MB, free: 22.41 MB / 298.7 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.001347/0.3019, allocations: 0.6548 MB / 413.6 MB, free: 21.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.302, allocations: 12.03 kB / 413.6 MB, free: 21.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/0.3022, allocations: 47.61 kB / 413.6 MB, free: 21.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003487/0.3025, allocations: 323.9 kB / 413.9 MB, free: 21.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.936e-05/0.3026, allocations: 50.22 kB / 414 MB, free: 21.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/0.3027, allocations: 43.89 kB / 414 MB, free: 21.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000513/0.3032, allocations: 320.5 kB / 414.3 MB, free: 20.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.3033, allocations: 11.98 kB / 414.4 MB, free: 20.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.908e-05/0.3033, allocations: 4 kB / 414.4 MB, free: 20.85 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.3033, allocations: 8 kB / 414.4 MB, free: 20.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005719/0.3039, allocations: 314 kB / 414.7 MB, free: 20.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.3053, allocations: 1.167 MB / 415.8 MB, free: 19.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005172/0.3059, allocations: 303.3 kB / 416.1 MB, free: 18.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002769/0.3061, allocations: 165.6 kB / 416.3 MB, free: 18.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.641e-05/0.3062, allocations: 7.953 kB / 416.3 MB, free: 18.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.703e-05/0.3062, allocations: 38.56 kB / 416.3 MB, free: 18.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 2.154e-06/0.3062, allocations: 0 / 416.3 MB, free: 18.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.008547/0.3148, allocations: 2.535 MB / 418.9 MB, free: 16.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.714e-05/0.3148, allocations: 81.11 kB / 419 MB, free: 16.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002872/0.3151, allocations: 288.9 kB / 419.2 MB, free: 15.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.556e-05/0.3152, allocations: 33.7 kB / 419.3 MB, free: 15.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.51e-05/0.3153, allocations: 168.4 kB / 419.4 MB, free: 15.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.091e-05/0.3154, allocations: 145.8 kB / 419.6 MB, free: 15.4 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.592e-05/0.3154, allocations: 12 kB / 419.6 MB, free: 15.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.128e-05/0.3155, allocations: 338.8 kB / 419.9 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003585/0.3158, allocations: 172.8 kB / 420.1 MB, free: 14.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003787/0.3162, allocations: 234.7 kB / 420.3 MB, free: 14.63 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003835/0.3166, allocations: 193.8 kB / 420.5 MB, free: 14.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.3166, allocations: 4 kB / 420.5 MB, free: 14.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008993/0.3175, allocations: 0.4892 MB / 421 MB, free: 13.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.3176, allocations: 11.94 kB / 421 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.537e-06/0.3176, allocations: 0 / 421 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.3176, allocations: 8 kB / 421 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005667/0.3182, allocations: 131.8 kB / 421.2 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.3182, allocations: 4 kB / 421.2 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003728/0.3186, allocations: 39.89 kB / 421.2 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.279e-05/0.3186, allocations: 15.98 kB / 421.2 MB, free: 13.74 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001524/0.3188, allocations: 153.7 kB / 421.4 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.941e-05/0.3189, allocations: 27.72 kB / 421.4 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001724/0.3206, allocations: 0.6876 MB / 422.1 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.3206, allocations: 4 kB / 422.1 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.3206, allocations: 7.984 kB / 422.1 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.3207, allocations: 0 / 422.1 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002849/0.3235, allocations: 1.329 MB / 423.4 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3235, allocations: 0 / 423.4 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004073/0.3239, allocations: 91.88 kB / 423.5 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001662/0.3256, allocations: 284.5 kB / 423.8 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.459e-05/0.3257, allocations: 12 kB / 423.8 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003365/0.329, allocations: 2.287 MB / 426.1 MB, free: 8.641 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.329, allocations: 0 / 426.1 MB, free: 8.641 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002084/0.3311, allocations: 1.042 MB / 427.1 MB, free: 7.578 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001466/0.3313, allocations: 144.7 kB / 427.3 MB, free: 7.418 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.959e-05/0.3314, allocations: 15.94 kB / 427.3 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004278/0.3318, allocations: 31.97 kB / 427.3 MB, free: 7.371 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.3319, allocations: 44.33 kB / 427.4 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.707e-05/0.3319, allocations: 12 kB / 427.4 MB, free: 7.316 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000193/0.3321, allocations: 212.5 kB / 427.6 MB, free: 7.109 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3321, allocations: 0 / 427.6 MB, free: 7.109 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005178/0.3327, allocations: 116 kB / 427.7 MB, free: 6.996 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002596/0.3329, allocations: 150.3 kB / 427.8 MB, free: 6.844 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000871/0.3338, allocations: 450 kB / 428.3 MB, free: 6.406 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3338, allocations: 0 / 428.3 MB, free: 6.406 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005961/0.3344, allocations: 393.4 kB / 428.7 MB, free: 6.008 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005159/0.335, allocations: 36.98 kB / 428.7 MB, free: 5.973 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.3366, allocations: 1.236 MB / 429.9 MB, free: 4.703 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002367/0.3368, allocations: 0.7855 MB / 430.7 MB, free: 3.891 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000145/0.337, allocations: 39.41 kB / 430.8 MB, free: 3.852 MB / 298.7 MB Notification: Performance of SimCode: time 3.61e-07/0.337, allocations: 0 / 430.8 MB, free: 3.852 MB / 298.7 MB Notification: Performance of Templates: time 0.007412/0.3444, allocations: 5.675 MB / 436.4 MB, free: 14.19 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches