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.001099/0.001099, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.00133/0.00133, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.332/1.332, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002513/0.0002514, allocations: 11.94 kB / 301.4 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08718/0.08745, allocations: 50.41 MB / 351.8 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.003129/0.09061, allocations: 2.499 MB / 354.3 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001972/0.09261, allocations: 1.235 MB / 355.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002135/0.09286, allocations: 8 kB / 355.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000259/0.09313, allocations: 55.61 kB / 355.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00058/0.09372, allocations: 187 kB / 355.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.094, allocations: 107.8 kB / 355.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005111/0.09452, allocations: 439 kB / 356.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.09469, allocations: 73.34 kB / 356.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003046/0.095, allocations: 163.4 kB / 356.6 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003101/0.09533, allocations: 203.1 kB / 356.8 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.358e-05/0.0954, allocations: 24 kB / 356.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002999/0.0957, allocations: 143.9 kB / 356.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.411e-05/0.09579, allocations: 67.72 kB / 357 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001884/0.09598, allocations: 196.8 kB / 357.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000555/0.09655, allocations: 482.3 kB / 357.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.09656, allocations: 0 / 357.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.09657, allocations: 0 / 357.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.222e-05/0.09659, allocations: 0 / 357.7 MB, free: 13.59 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.001564/0.09816, allocations: 0.651 MB / 358.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.0982, allocations: 8.031 kB / 358.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.09832, allocations: 40.47 kB / 358.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004402/0.09877, allocations: 325.3 kB / 358.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.811e-05/0.09885, allocations: 54.83 kB / 358.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001653/0.09902, allocations: 40.48 kB / 358.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006395/0.09967, allocations: 324.5 kB / 359.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.0997, allocations: 7.844 kB / 359.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.275e-05/0.09974, allocations: 12 kB / 359.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.09976, allocations: 8 kB / 359.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006998/0.1005, allocations: 310 kB / 359.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001873/0.1024, allocations: 1.171 MB / 360.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006524/0.103, allocations: 299.8 kB / 360.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003429/0.1034, allocations: 173.6 kB / 361.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.401e-05/0.1034, allocations: 4 kB / 361.1 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.468e-05/0.1035, allocations: 42.5 kB / 361.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.974e-06/0.1035, allocations: 0 / 361.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.009716/0.1132, allocations: 2.533 MB / 363.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.1133, allocations: 81.11 kB / 363.7 MB, free: 7.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003472/0.1136, allocations: 285 kB / 364 MB, free: 6.941 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.998e-05/0.1137, allocations: 37.64 kB / 364 MB, free: 6.898 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.1138, allocations: 168.3 kB / 364.2 MB, free: 6.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.1139, allocations: 145.9 kB / 364.3 MB, free: 6.586 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.164e-05/0.114, allocations: 37.7 kB / 364.4 MB, free: 6.543 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.1141, allocations: 346.8 kB / 364.7 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004226/0.1145, allocations: 168.8 kB / 364.9 MB, free: 6.031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004405/0.115, allocations: 242.6 kB / 365.1 MB, free: 5.773 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008461/0.1158, allocations: 427.6 kB / 365.5 MB, free: 5.336 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1158, allocations: 0 / 365.5 MB, free: 5.336 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001041/0.1169, allocations: 0.5042 MB / 366 MB, free: 4.824 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.1169, allocations: 4.188 kB / 366 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.1169, allocations: 8 kB / 366.1 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.1169, allocations: 0 / 366.1 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006069/0.1176, allocations: 119.9 kB / 366.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.708e-05/0.1176, allocations: 7.984 kB / 366.2 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004124/0.118, allocations: 43.92 kB / 366.2 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/0.118, allocations: 19.98 kB / 366.2 MB, free: 4.625 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.0001628/0.1182, allocations: 157.6 kB / 366.4 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.1183, allocations: 31.62 kB / 366.4 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001959/0.1203, allocations: 0.6838 MB / 367.1 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.1203, allocations: 4 kB / 367.1 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1203, allocations: 0 / 367.1 MB, free: 3.734 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.1203, allocations: 7.984 kB / 367.1 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003291/0.1236, allocations: 1.326 MB / 368.4 MB, free: 2.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1237, allocations: 0 / 368.4 MB, free: 2.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004577/0.1241, allocations: 95.88 kB / 368.5 MB, free: 2.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001807/0.1259, allocations: 284.6 kB / 368.8 MB, free: 1.969 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.424e-05/0.126, allocations: 11.98 kB / 368.8 MB, free: 1.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1662/0.2922, allocations: 2.274 MB / 371.1 MB, free: 23.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2922, allocations: 0 / 371.1 MB, free: 23.67 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002603/0.2948, allocations: 1.052 MB / 372.2 MB, free: 23.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.295, allocations: 152.4 kB / 372.3 MB, free: 23.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.777e-05/0.2951, allocations: 12.33 kB / 372.3 MB, free: 23.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004725/0.2955, allocations: 38.88 kB / 372.4 MB, free: 23.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.2957, allocations: 34.81 kB / 372.4 MB, free: 23.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.666e-05/0.2957, allocations: 16.42 kB / 372.4 MB, free: 23.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002262/0.296, allocations: 216.1 kB / 372.6 MB, free: 23.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.296, allocations: 0.9375 kB / 372.6 MB, free: 23.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005724/0.2965, allocations: 115.7 kB / 372.7 MB, free: 23.28 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.0002452/0.2968, allocations: 143.1 kB / 372.9 MB, free: 23.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001058/0.2979, allocations: 445 kB / 373.3 MB, free: 23.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.2979, allocations: 3.438 kB / 373.3 MB, free: 23.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007835/0.2987, allocations: 392.5 kB / 373.7 MB, free: 23.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000541/0.2992, allocations: 36.94 kB / 373.7 MB, free: 23.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001744/0.301, allocations: 1.231 MB / 375 MB, free: 22.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002126/0.3012, allocations: 0.7861 MB / 375.7 MB, free: 21.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002262/0.3014, allocations: 45.78 kB / 375.8 MB, free: 21.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.3016, allocations: 33.06 kB / 375.8 MB, free: 21.77 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3016, allocations: 1.375 kB / 375.8 MB, free: 21.77 MB / 302.1 MB Notification: Performance of Templates: time 0.01132/0.3129, allocations: 5.894 MB / 381.7 MB, free: 20.84 MB / 302.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