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.001082/0.001082, allocations: 112.6 kB / 17.28 MB, free: 6.199 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.001024/0.001024, allocations: 193.3 kB / 18.2 MB, free: 5.277 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.271/1.271, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001109/0.001109, allocations: 55.92 kB / 280.2 MB, free: 3.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08626/0.08738, allocations: 46.63 MB / 326.8 MB, free: 4.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004717/0.09214, allocations: 2.807 MB / 329.6 MB, free: 1.945 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002295/0.09447, allocations: 1.267 MB / 330.9 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001804/0.09468, allocations: 8 kB / 330.9 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003434/0.09503, allocations: 51.61 kB / 330.9 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005704/0.09561, allocations: 195 kB / 331.1 MB, free: 428 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002633/0.09589, allocations: 111.8 kB / 331.2 MB, free: 316 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00045/0.09634, allocations: 451.1 kB / 331.7 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.09652, allocations: 88.86 kB / 331.8 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002304/0.09676, allocations: 183.4 kB / 331.9 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002472/0.09702, allocations: 223.2 kB / 332.1 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.375e-05/0.09708, allocations: 40 kB / 332.2 MB, free: 15.35 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002648/0.09735, allocations: 159.8 kB / 332.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.868e-05/0.09745, allocations: 95.72 kB / 332.4 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001566/0.09761, allocations: 179.2 kB / 332.6 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005/0.09812, allocations: 0.4984 MB / 333.1 MB, free: 14.42 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.09813, allocations: 0 / 333.1 MB, free: 14.42 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.09814, allocations: 0 / 333.1 MB, free: 14.42 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.09815, allocations: 4 kB / 333.1 MB, free: 14.42 MB / 286.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.001597/0.09976, allocations: 0.7054 MB / 333.8 MB, free: 13.66 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.09982, allocations: 12.03 kB / 333.8 MB, free: 13.65 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.826e-05/0.09991, allocations: 32.56 kB / 333.9 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003964/0.1003, allocations: 337 kB / 334.2 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.764e-05/0.1004, allocations: 46.83 kB / 334.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001581/0.1006, allocations: 44.48 kB / 334.3 MB, free: 13.15 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006336/0.1012, allocations: 316.5 kB / 334.6 MB, free: 12.83 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.1012, allocations: 7.984 kB / 334.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.155e-05/0.1013, allocations: 8 kB / 334.6 MB, free: 12.81 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.1013, allocations: 8 kB / 334.6 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006776/0.102, allocations: 302 kB / 334.9 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001766/0.1038, allocations: 1.167 MB / 336.1 MB, free: 11.27 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005931/0.1044, allocations: 289 kB / 336.4 MB, free: 10.96 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00034/0.1047, allocations: 165.6 kB / 336.5 MB, free: 10.8 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.013e-05/0.1048, allocations: 4 kB / 336.5 MB, free: 10.79 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.1048, allocations: 38.56 kB / 336.6 MB, free: 10.75 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.452e-06/0.1048, allocations: 0 / 336.6 MB, free: 10.75 MB / 286.1 MB Notification: Performance of matching and sorting (n=42): time 0.009634/0.1144, allocations: 2.417 MB / 339 MB, free: 8.254 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.673e-05/0.1146, allocations: 85.11 kB / 339.1 MB, free: 8.152 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004977/0.1151, allocations: 292.9 kB / 339.3 MB, free: 7.852 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.964e-05/0.1151, allocations: 29.7 kB / 339.4 MB, free: 7.816 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/0.1153, allocations: 172.4 kB / 339.5 MB, free: 7.645 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.1154, allocations: 141.9 kB / 339.7 MB, free: 7.504 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001454/0.1155, allocations: 78.02 kB / 339.8 MB, free: 7.422 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.1157, allocations: 346.8 kB / 340.1 MB, free: 7.074 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003826/0.1161, allocations: 164.7 kB / 340.3 MB, free: 6.914 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003973/0.1165, allocations: 226.7 kB / 340.5 MB, free: 6.676 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007849/0.1173, allocations: 411.5 kB / 340.9 MB, free: 6.254 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1173, allocations: 0 / 340.9 MB, free: 6.254 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001128/0.1184, allocations: 480.6 kB / 341.4 MB, free: 5.777 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.1184, allocations: 4 kB / 341.4 MB, free: 5.773 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.1185, allocations: 12.19 kB / 341.4 MB, free: 5.762 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.1185, allocations: 4 kB / 341.4 MB, free: 5.758 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005848/0.1191, allocations: 119.8 kB / 341.5 MB, free: 5.641 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.1191, allocations: 4 kB / 341.5 MB, free: 5.637 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004787/0.1196, allocations: 35.92 kB / 341.5 MB, free: 5.602 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.822e-05/0.1196, allocations: 19.97 kB / 341.5 MB, free: 5.582 MB / 286.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.0001747/0.1198, allocations: 157.7 kB / 341.7 MB, free: 5.418 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.645e-05/0.1199, allocations: 31.62 kB / 341.7 MB, free: 5.387 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0018/0.1217, allocations: 0.6486 MB / 342.4 MB, free: 4.723 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.1217, allocations: 7.938 kB / 342.4 MB, free: 4.715 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.1218, allocations: 4 kB / 342.4 MB, free: 4.711 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.1218, allocations: 3.984 kB / 342.4 MB, free: 4.707 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003011/0.1248, allocations: 1.279 MB / 343.7 MB, free: 3.371 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.1248, allocations: 0 / 343.7 MB, free: 3.371 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004345/0.1253, allocations: 95.88 kB / 343.8 MB, free: 3.277 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001541/0.1268, allocations: 268.6 kB / 344 MB, free: 3.012 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.688e-05/0.1268, allocations: 8 kB / 344 MB, free: 3.004 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003834/0.1307, allocations: 2.447 MB / 346.5 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1307, allocations: 3.938 kB / 346.5 MB, free: 420 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00223/0.1329, allocations: 1.002 MB / 347.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001617/0.1331, allocations: 156.6 kB / 347.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.988e-05/0.1332, allocations: 12 kB / 347.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004482/0.1336, allocations: 19.98 kB / 347.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.1338, allocations: 44.38 kB / 347.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.631e-05/0.1338, allocations: 16 kB / 347.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002067/0.134, allocations: 208.5 kB / 347.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.134, allocations: 3.938 kB / 347.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000543/0.1346, allocations: 116 kB / 348.1 MB, free: 14.8 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.0002648/0.1348, allocations: 151.3 kB / 348.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001072/0.1359, allocations: 450 kB / 348.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1359, allocations: 0 / 348.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006965/0.1366, allocations: 389.2 kB / 349 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000545/0.1372, allocations: 40.42 kB / 349.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001769/0.139, allocations: 1.104 MB / 350.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003107/0.1393, allocations: 0.7852 MB / 351 MB, free: 11.83 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002273/0.1395, allocations: 46.95 kB / 351 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001346/0.1397, allocations: 35.41 kB / 351 MB, free: 11.75 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1397, allocations: 0 / 351 MB, free: 11.75 MB / 302.1 MB Notification: Performance of Templates: time 0.01102/0.1507, allocations: 6.215 MB / 357.2 MB, free: 5.531 MB / 302.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","../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches