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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 112.7 kB / 17.06 MB, free: 5.996 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.001504/0.001504, allocations: 198.9 kB / 18 MB, free: 5.078 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.346/1.346, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 39.94 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2772, allocations: 49.44 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004441/0.2817, allocations: 2.827 MB / 403.1 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002248/0.284, allocations: 1.23 MB / 404.3 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003604/0.2843, allocations: 4 kB / 404.3 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000403/0.2848, allocations: 71.42 kB / 404.4 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008399/0.2857, allocations: 224.4 kB / 404.6 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003633/0.2861, allocations: 119.8 kB / 404.7 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006354/0.2867, allocations: 459 kB / 405.1 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002125/0.2869, allocations: 84.7 kB / 405.2 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000362/0.2873, allocations: 191.4 kB / 405.4 MB, free: 3.621 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003948/0.2877, allocations: 219.2 kB / 405.6 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001069/0.2878, allocations: 40 kB / 405.7 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003692/0.2882, allocations: 155.9 kB / 405.8 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.2883, allocations: 91.66 kB / 405.9 MB, free: 3.125 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002145/0.2885, allocations: 187.2 kB / 406.1 MB, free: 2.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006374/0.2892, allocations: 0.51 MB / 406.6 MB, free: 2.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2892, allocations: 0 / 406.6 MB, free: 2.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2892, allocations: 0 / 406.6 MB, free: 2.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.732e-05/0.2892, allocations: 0 / 406.6 MB, free: 2.43 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.00191/0.2911, allocations: 0.7054 MB / 407.3 MB, free: 1.676 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.2912, allocations: 12.03 kB / 407.3 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.639e-05/0.2913, allocations: 58.73 kB / 407.4 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.2914, allocations: 44.56 kB / 407.4 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005121/0.2919, allocations: 329.2 kB / 407.7 MB, free: 1.191 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.783e-05/0.292, allocations: 50.83 kB / 407.8 MB, free: 1.133 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001611/0.2922, allocations: 40.3 kB / 407.8 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006397/0.2928, allocations: 320.5 kB / 408.1 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.2929, allocations: 7.984 kB / 408.2 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.189e-05/0.2929, allocations: 8 kB / 408.2 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.2929, allocations: 8 kB / 408.2 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007059/0.2936, allocations: 302 kB / 408.5 MB, free: 464 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00188/0.2955, allocations: 1.16 MB / 409.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006874/0.2962, allocations: 297 kB / 409.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003297/0.2966, allocations: 157.7 kB / 410.1 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.2966, allocations: 7.938 kB / 410.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/0.2966, allocations: 46.48 kB / 410.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.693e-06/0.2966, allocations: 0 / 410.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.009414/0.3061, allocations: 2.415 MB / 412.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.3061, allocations: 81.11 kB / 412.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003443/0.3065, allocations: 285 kB / 412.9 MB, free: 11.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.455e-05/0.3065, allocations: 33.7 kB / 412.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.3067, allocations: 176.3 kB / 413.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001265/0.3068, allocations: 145.8 kB / 413.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/0.3069, allocations: 82.09 kB / 413.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002021/0.3072, allocations: 342.8 kB / 413.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003735/0.3075, allocations: 160.8 kB / 413.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004102/0.308, allocations: 226.7 kB / 414 MB, free: 10.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008431/0.3088, allocations: 411.5 kB / 414.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3088, allocations: 0 / 414.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001019/0.3099, allocations: 488.3 kB / 414.9 MB, free: 9.715 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.3099, allocations: 4 kB / 414.9 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.3099, allocations: 0 / 414.9 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.3099, allocations: 4 kB / 414.9 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005992/0.3105, allocations: 128 kB / 415 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.3105, allocations: 7.938 kB / 415.1 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004066/0.311, allocations: 27.98 kB / 415.1 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/0.311, allocations: 19.98 kB / 415.1 MB, free: 9.527 MB / 334.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.0001938/0.3112, allocations: 157.7 kB / 415.3 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.86e-05/0.3113, allocations: 27.62 kB / 415.3 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001818/0.3131, allocations: 0.6526 MB / 415.9 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.3132, allocations: 4 kB / 415.9 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.3132, allocations: 0 / 415.9 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.3132, allocations: 3.984 kB / 415.9 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003176/0.3164, allocations: 1.279 MB / 417.2 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.3164, allocations: 0 / 417.2 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004495/0.3168, allocations: 91.88 kB / 417.3 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00158/0.3184, allocations: 264.6 kB / 417.6 MB, free: 6.973 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.29e-05/0.3185, allocations: 11.98 kB / 417.6 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004093/0.3226, allocations: 2.447 MB / 420 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3226, allocations: 0 / 420 MB, free: 4.375 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002297/0.3249, allocations: 1.015 MB / 421 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00021/0.3251, allocations: 148.6 kB / 421.2 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.907e-05/0.3252, allocations: 12 kB / 421.2 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000475/0.3257, allocations: 23.98 kB / 421.2 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.3258, allocations: 48.31 kB / 421.3 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.217e-05/0.3259, allocations: 15.94 kB / 421.3 MB, free: 3.078 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002493/0.3261, allocations: 208.5 kB / 421.5 MB, free: 2.871 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3261, allocations: 0 / 421.5 MB, free: 2.871 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000652/0.3268, allocations: 120 kB / 421.6 MB, free: 2.754 MB / 334.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.002723/0.3295, allocations: 1.583 MB / 423.2 MB, free: 1.141 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001/0.3305, allocations: 433.9 kB / 423.6 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.3306, allocations: 0 / 423.6 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007214/0.3313, allocations: 389.3 kB / 424 MB, free: 336 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005227/0.3318, allocations: 36.61 kB / 424 MB, free: 300 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005759/0.3376, allocations: 3.847 MB / 427.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003741/0.338, allocations: 0.7891 MB / 428.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001994/0.3382, allocations: 46.94 kB / 428.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002313/0.3384, allocations: 119.4 kB / 428.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3384, allocations: 0 / 428.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04619/0.3846, allocations: 9.91 MB / 438.7 MB, free: 1.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.64, allocations: 13.64 kB / 438.7 MB, free: 1.621 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > 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/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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches