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.00138/0.00138, allocations: 115.9 kB / 18.41 MB, free: 4.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001571/0.00157, allocations: 199.5 kB / 19.36 MB, free: 3.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 56.88 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09542/0.09676, allocations: 50.54 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.005118/0.1019, allocations: 2.829 MB / 361.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002166/0.1041, allocations: 1.292 MB / 363 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001753/0.1043, allocations: 7.938 kB / 363 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002867/0.1047, allocations: 71.42 kB / 363.1 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005603/0.1052, allocations: 222.7 kB / 363.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002942/0.1055, allocations: 135.8 kB / 363.5 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004524/0.106, allocations: 463 kB / 363.9 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001635/0.1062, allocations: 84.45 kB / 364 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002863/0.1065, allocations: 191.4 kB / 364.2 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000289/0.1068, allocations: 219.2 kB / 364.4 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.23e-05/0.1068, allocations: 44 kB / 364.4 MB, free: 7.762 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002974/0.1071, allocations: 163.9 kB / 364.6 MB, free: 7.602 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.1073, allocations: 95.64 kB / 364.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.1074, allocations: 183.2 kB / 364.9 MB, free: 7.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005559/0.108, allocations: 0.5023 MB / 365.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.108, allocations: 0 / 365.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.108, allocations: 3.938 kB / 365.4 MB, free: 6.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.108, allocations: 4 kB / 365.4 MB, free: 6.816 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.00158/0.1096, allocations: 0.7133 MB / 366.1 MB, free: 6.055 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.1097, allocations: 8.031 kB / 366.1 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001924/0.1099, allocations: 48.45 kB / 366.2 MB, free: 6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005054/0.1104, allocations: 329.3 kB / 366.5 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.701e-05/0.1105, allocations: 50.83 kB / 366.5 MB, free: 5.582 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001541/0.1106, allocations: 44.39 kB / 366.6 MB, free: 5.539 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000568/0.1112, allocations: 320.5 kB / 366.9 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.1112, allocations: 3.938 kB / 366.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.416e-05/0.1113, allocations: 12 kB / 366.9 MB, free: 5.191 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.1113, allocations: 4 kB / 366.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006366/0.1119, allocations: 310 kB / 367.2 MB, free: 4.887 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.1138, allocations: 1.152 MB / 368.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005731/0.1144, allocations: 296.3 kB / 368.6 MB, free: 3.352 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003022/0.1147, allocations: 165.6 kB / 368.8 MB, free: 3.184 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.1147, allocations: 4 kB / 368.8 MB, free: 3.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.1147, allocations: 42.48 kB / 368.9 MB, free: 3.129 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.974e-06/0.1147, allocations: 4 kB / 368.9 MB, free: 3.125 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.00903/0.1238, allocations: 2.418 MB / 371.3 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.1239, allocations: 85.11 kB / 371.4 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003282/0.1242, allocations: 289 kB / 371.6 MB, free: 240 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.149e-05/0.1242, allocations: 37.7 kB / 371.7 MB, free: 196 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.858e-05/0.1244, allocations: 164.4 kB / 371.8 MB, free: 28 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1944/0.3188, allocations: 142.5 kB / 372 MB, free: 20.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003072/0.3192, allocations: 80.66 kB / 372.1 MB, free: 20.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.3193, allocations: 340.6 kB / 372.4 MB, free: 20.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006242/0.32, allocations: 162.4 kB / 372.5 MB, free: 20.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000725/0.3207, allocations: 228.8 kB / 372.8 MB, free: 20.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/0.322, allocations: 407.2 kB / 373.2 MB, free: 19.95 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.322, allocations: 0 / 373.2 MB, free: 19.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001614/0.3236, allocations: 486.5 kB / 373.6 MB, free: 19.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.3237, allocations: 5.25 kB / 373.6 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.3237, allocations: 3.469 kB / 373.7 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.526e-05/0.3237, allocations: 3.531 kB / 373.7 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009295/0.3247, allocations: 121.9 kB / 373.8 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.079e-05/0.3247, allocations: 7.828 kB / 373.8 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005561/0.3253, allocations: 31.83 kB / 373.8 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.763e-05/0.3253, allocations: 23.27 kB / 373.8 MB, free: 19.89 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.000177/0.3255, allocations: 154.1 kB / 374 MB, free: 19.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.3257, allocations: 31.28 kB / 374 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002892/0.3286, allocations: 0.6539 MB / 374.7 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.3286, allocations: 4.812 kB / 374.7 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.3286, allocations: 1.562 kB / 374.7 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.3287, allocations: 7.406 kB / 374.7 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004738/0.3334, allocations: 1.275 MB / 376 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.3334, allocations: 5.641 kB / 376 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006507/0.3341, allocations: 92.39 kB / 376.1 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002216/0.3363, allocations: 272 kB / 376.3 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.535e-05/0.3364, allocations: 9.578 kB / 376.3 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005247/0.3417, allocations: 2.439 MB / 378.8 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.3417, allocations: 2.344 kB / 378.8 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003182/0.3449, allocations: 1.007 MB / 379.8 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003/0.3452, allocations: 147.2 kB / 379.9 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.3453, allocations: 12.39 kB / 379.9 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007058/0.346, allocations: 28.58 kB / 380 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001808/0.3462, allocations: 40.86 kB / 380 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.593e-05/0.3463, allocations: 11.81 kB / 380 MB, free: 16.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003339/0.3467, allocations: 220.3 kB / 380.2 MB, free: 16.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3467, allocations: 0 / 380.2 MB, free: 16.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001039/0.3477, allocations: 124.1 kB / 380.4 MB, free: 16.07 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.0003776/0.3481, allocations: 143.6 kB / 380.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001491/0.3496, allocations: 428.9 kB / 380.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3496, allocations: 0 / 380.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009629/0.3506, allocations: 386.7 kB / 381.3 MB, free: 15.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007643/0.3514, allocations: 43.92 kB / 381.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002399/0.3538, allocations: 0.9568 MB / 382.3 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.3541, allocations: 0.7879 MB / 383.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003152/0.3545, allocations: 45.84 kB / 383.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000203/0.3547, allocations: 34.48 kB / 383.2 MB, free: 14.35 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3547, allocations: 0 / 383.2 MB, free: 14.35 MB / 302.1 MB Notification: Performance of Templates: time 0.01542/0.3701, allocations: 6.351 MB / 389.5 MB, free: 12.46 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/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