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.001354/0.001354, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001321/0.001321, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002484/0.002484, allocations: 72.83 kB / 307 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1088, allocations: 50.53 MB / 357.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004643/0.1135, allocations: 2.839 MB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002113/0.1157, allocations: 1.289 MB / 361.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.1159, allocations: 7.938 kB / 361.7 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000271/0.1161, allocations: 75.41 kB / 361.7 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00057/0.1167, allocations: 222.7 kB / 362 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003313/0.1171, allocations: 131.8 kB / 362.1 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005167/0.1176, allocations: 459 kB / 362.5 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.1178, allocations: 80.95 kB / 362.6 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003011/0.1181, allocations: 187.4 kB / 362.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003139/0.1184, allocations: 219.2 kB / 363 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.158e-05/0.1185, allocations: 44 kB / 363.1 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003447/0.1189, allocations: 167.9 kB / 363.2 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.119, allocations: 95.66 kB / 363.3 MB, free: 8.203 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001835/0.1192, allocations: 191.1 kB / 363.5 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000585/0.1198, allocations: 0.4945 MB / 364 MB, free: 7.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1198, allocations: 0 / 364 MB, free: 7.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1198, allocations: 0 / 364 MB, free: 7.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.1198, allocations: 0 / 364 MB, free: 7.52 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.001671/0.1215, allocations: 0.7055 MB / 364.7 MB, free: 6.766 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.1215, allocations: 12.03 kB / 364.7 MB, free: 6.754 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001997/0.1217, allocations: 52.39 kB / 364.8 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004135/0.1221, allocations: 325.3 kB / 365.1 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.365e-05/0.1222, allocations: 54.83 kB / 365.1 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000161/0.1224, allocations: 44.39 kB / 365.2 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006251/0.123, allocations: 324.4 kB / 365.5 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.1231, allocations: 0 / 365.5 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.86e-05/0.1231, allocations: 12 kB / 365.5 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.1231, allocations: 4 kB / 365.5 MB, free: 5.891 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006991/0.1238, allocations: 306 kB / 365.8 MB, free: 5.594 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001812/0.1257, allocations: 1.16 MB / 367 MB, free: 4.355 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006825/0.1264, allocations: 301 kB / 367.3 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003439/0.1267, allocations: 161.7 kB / 367.4 MB, free: 3.879 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.542e-05/0.1267, allocations: 4 kB / 367.4 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.1268, allocations: 38.55 kB / 367.5 MB, free: 3.828 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 2.004e-06/0.1268, allocations: 0 / 367.5 MB, free: 3.828 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.00994/0.1367, allocations: 2.422 MB / 369.9 MB, free: 1.328 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.657e-05/0.1368, allocations: 85.11 kB / 370 MB, free: 1.227 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003974/0.1373, allocations: 293 kB / 370.2 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.762e-05/0.1373, allocations: 29.7 kB / 370.3 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.1374, allocations: 180.2 kB / 370.5 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.1376, allocations: 149.8 kB / 370.6 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001584/0.1377, allocations: 78.11 kB / 370.7 MB, free: 492 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001904/0.1379, allocations: 338.8 kB / 371 MB, free: 144 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1481/0.2861, allocations: 162.3 kB / 371.2 MB, free: 20.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005418/0.2866, allocations: 224.8 kB / 371.4 MB, free: 20.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008136/0.2875, allocations: 405.5 kB / 371.8 MB, free: 19.97 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2875, allocations: 0 / 371.8 MB, free: 19.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001114/0.2886, allocations: 487.8 kB / 372.3 MB, free: 19.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.2886, allocations: 6.359 kB / 372.3 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.2886, allocations: 2.188 kB / 372.3 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.2887, allocations: 4.125 kB / 372.3 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006332/0.2893, allocations: 125.7 kB / 372.4 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.2893, allocations: 3.844 kB / 372.4 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004113/0.2897, allocations: 33.41 kB / 372.4 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.665e-05/0.2898, allocations: 17.23 kB / 372.4 MB, free: 19.93 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.0001662/0.29, allocations: 156.3 kB / 372.6 MB, free: 19.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.464e-05/0.2901, allocations: 30.19 kB / 372.6 MB, free: 19.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00194/0.292, allocations: 0.6504 MB / 373.3 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.999e-06/0.292, allocations: 5.156 kB / 373.3 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.292, allocations: 0.6875 kB / 373.3 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.2921, allocations: 5.469 kB / 373.3 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003209/0.2953, allocations: 1.278 MB / 374.6 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.2953, allocations: 5.875 kB / 374.6 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004295/0.2957, allocations: 94.05 kB / 374.7 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001577/0.2973, allocations: 268.4 kB / 374.9 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.62e-05/0.2974, allocations: 8.156 kB / 374.9 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003487/0.3009, allocations: 2.44 MB / 377.4 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3009, allocations: 1.281 kB / 377.4 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00213/0.303, allocations: 1.01 MB / 378.4 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001476/0.3032, allocations: 148.7 kB / 378.5 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.942e-05/0.3032, allocations: 11.72 kB / 378.5 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004394/0.3037, allocations: 24.89 kB / 378.6 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.3038, allocations: 42.75 kB / 378.6 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-05/0.3038, allocations: 19.33 kB / 378.6 MB, free: 16.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002008/0.304, allocations: 213.3 kB / 378.8 MB, free: 16.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.304, allocations: 4 kB / 378.8 MB, free: 16.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005529/0.3046, allocations: 114.4 kB / 379 MB, free: 16.29 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.0002308/0.3048, allocations: 138.4 kB / 379.1 MB, free: 16.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.3059, allocations: 451.5 kB / 379.5 MB, free: 16.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3059, allocations: 1.375 kB / 379.5 MB, free: 16.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006269/0.3065, allocations: 382.5 kB / 379.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004804/0.307, allocations: 49.5 kB / 380 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/0.3086, allocations: 0.9655 MB / 380.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002025/0.3088, allocations: 0.7868 MB / 381.7 MB, free: 14.56 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002147/0.309, allocations: 46.48 kB / 381.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.3091, allocations: 39.16 kB / 381.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3091, allocations: 3.828 kB / 381.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of Templates: time 0.01115/0.3203, allocations: 6.352 MB / 388.1 MB, free: 12.71 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins/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