Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001431/0.001431, allocations: 110.5 kB / 17.73 MB, free: 5.324 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.001151/0.001151, allocations: 187 kB / 18.66 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.414/1.414, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001739/0.001739, allocations: 52.25 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09255/0.0943, allocations: 46.62 MB / 375.1 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004493/0.09884, allocations: 2.75 MB / 377.9 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002274/0.1011, allocations: 1.281 MB / 379.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001968/0.1014, allocations: 4 kB / 379.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002721/0.1017, allocations: 63.44 kB / 379.2 MB, free: 448 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005772/0.1023, allocations: 234.7 kB / 379.5 MB, free: 212 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002334/0.1025, allocations: 115.8 kB / 379.6 MB, free: 96 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.174/0.2765, allocations: 463.1 kB / 380 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002114/0.2768, allocations: 89.33 kB / 380.1 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003175/0.2771, allocations: 183.1 kB / 380.3 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002802/0.2774, allocations: 224.8 kB / 380.5 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.946e-05/0.2775, allocations: 43.53 kB / 380.6 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003417/0.2778, allocations: 157.5 kB / 380.7 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.557e-05/0.2779, allocations: 90.44 kB / 380.8 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001603/0.2781, allocations: 189.7 kB / 381 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006278/0.2787, allocations: 0.5008 MB / 381.5 MB, free: 9.723 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.2787, allocations: 1.984 kB / 381.5 MB, free: 9.723 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2787, allocations: 0 / 381.5 MB, free: 9.723 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.2787, allocations: 1.031 kB / 381.5 MB, free: 9.723 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.001662/0.2804, allocations: 0.7059 MB / 382.2 MB, free: 9.262 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.2805, allocations: 9.25 kB / 382.2 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.315e-05/0.2806, allocations: 40.27 kB / 382.3 MB, free: 9.242 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004773/0.281, allocations: 326 kB / 382.6 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.804e-05/0.2811, allocations: 56.44 kB / 382.6 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001796/0.2813, allocations: 41.05 kB / 382.7 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006858/0.282, allocations: 320.7 kB / 383 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.282, allocations: 7.672 kB / 383 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.229e-05/0.2821, allocations: 10.88 kB / 383 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.2821, allocations: 7.062 kB / 383 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006789/0.2828, allocations: 301.6 kB / 383.3 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001679/0.2845, allocations: 1.152 MB / 384.4 MB, free: 8.348 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005782/0.2851, allocations: 295.8 kB / 384.7 MB, free: 8.297 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003146/0.2854, allocations: 160.3 kB / 384.9 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.854e-05/0.2854, allocations: 4.266 kB / 384.9 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.056e-05/0.2855, allocations: 36.69 kB / 384.9 MB, free: 8.211 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.493e-06/0.2855, allocations: 0 / 384.9 MB, free: 8.211 MB / 318.1 MB Notification: Performance of matching and sorting (n=42): time 0.008909/0.2944, allocations: 2.421 MB / 387.4 MB, free: 7.273 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.217e-05/0.2944, allocations: 89.64 kB / 387.4 MB, free: 7.176 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003522/0.2948, allocations: 285.2 kB / 387.7 MB, free: 7.012 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.151e-05/0.2948, allocations: 36.86 kB / 387.8 MB, free: 6.973 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.37e-05/0.2949, allocations: 172.3 kB / 387.9 MB, free: 6.824 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.444e-05/0.295, allocations: 140.3 kB / 388.1 MB, free: 6.715 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/0.2952, allocations: 80.19 kB / 388.1 MB, free: 6.672 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.892e-05/0.2953, allocations: 340 kB / 388.5 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003902/0.2957, allocations: 165.9 kB / 388.6 MB, free: 6.289 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004311/0.2961, allocations: 226.2 kB / 388.9 MB, free: 6.164 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008083/0.2969, allocations: 408.5 kB / 389.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.2969, allocations: 6.844 kB / 389.3 MB, free: 5.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009768/0.2979, allocations: 483.7 kB / 389.7 MB, free: 5.766 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.298, allocations: 11.22 kB / 389.7 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.298, allocations: 1.406 kB / 389.7 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.298, allocations: 3.094 kB / 389.8 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005735/0.2986, allocations: 116.7 kB / 389.9 MB, free: 5.758 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.2986, allocations: 3.453 kB / 389.9 MB, free: 5.758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003567/0.2989, allocations: 32.3 kB / 389.9 MB, free: 5.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.312e-05/0.299, allocations: 25 kB / 389.9 MB, free: 5.742 MB / 318.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.0001523/0.2992, allocations: 163.6 kB / 390.1 MB, free: 5.594 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.057e-05/0.2993, allocations: 31.14 kB / 390.1 MB, free: 5.578 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001748/0.301, allocations: 0.6541 MB / 390.8 MB, free: 5.324 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.301, allocations: 4.594 kB / 390.8 MB, free: 5.324 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.301, allocations: 5.406 kB / 390.8 MB, free: 5.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.301, allocations: 3.047 kB / 390.8 MB, free: 5.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002925/0.304, allocations: 1.28 MB / 392.1 MB, free: 4.672 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.304, allocations: 1.438 kB / 392.1 MB, free: 4.672 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004443/0.3044, allocations: 89.19 kB / 392.1 MB, free: 4.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001483/0.3059, allocations: 268.6 kB / 392.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.713e-05/0.306, allocations: 12.98 kB / 392.4 MB, free: 4.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003565/0.3096, allocations: 2.44 MB / 394.9 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.3096, allocations: 0.9375 kB / 394.9 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002511/0.3121, allocations: 1.007 MB / 395.9 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002775/0.3124, allocations: 154.3 kB / 396 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.558e-05/0.3125, allocations: 8.719 kB / 396 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004278/0.3129, allocations: 30.12 kB / 396.1 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.313, allocations: 34 kB / 396.1 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.923e-05/0.3131, allocations: 14.62 kB / 396.1 MB, free: 2.027 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002396/0.3133, allocations: 213.2 kB / 396.3 MB, free: 1.902 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3133, allocations: 0 / 396.3 MB, free: 1.902 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006106/0.314, allocations: 118.7 kB / 396.4 MB, free: 1.883 MB / 318.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.0002522/0.3142, allocations: 134.4 kB / 396.6 MB, free: 1.789 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000938/0.3152, allocations: 439.6 kB / 397 MB, free: 1.648 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3152, allocations: 3.938 kB / 397 MB, free: 1.645 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000638/0.3158, allocations: 382.5 kB / 397.4 MB, free: 1.441 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004725/0.3163, allocations: 47.12 kB / 397.4 MB, free: 1.418 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.3178, allocations: 0.9591 MB / 398.4 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000233/0.3181, allocations: 0.7865 MB / 399.2 MB, free: 156 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001928/0.3183, allocations: 41 kB / 399.2 MB, free: 144 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001308/0.3184, allocations: 40.19 kB / 399.2 MB, free: 136 kB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3184, allocations: 0 / 399.2 MB, free: 136 kB / 318.1 MB Notification: Performance of Templates: time 0.01192/0.3304, allocations: 6.433 MB / 405.7 MB, free: 13.59 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches