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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001412/0.001412, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001688/0.001688, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2895, allocations: 50.54 MB / 408.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.003899/0.2934, allocations: 2.851 MB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001928/0.2954, allocations: 1.277 MB / 412.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001621/0.2956, allocations: 4 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002504/0.2958, allocations: 75.3 kB / 413 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005072/0.2964, allocations: 224.4 kB / 413.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002665/0.2966, allocations: 131.7 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004185/0.2971, allocations: 459 kB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.2972, allocations: 92.67 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002574/0.2975, allocations: 191.4 kB / 414 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002577/0.2978, allocations: 219.2 kB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.793e-05/0.2978, allocations: 44 kB / 414.3 MB, free: 12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002649/0.2981, allocations: 163.9 kB / 414.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.9e-05/0.2982, allocations: 99.64 kB / 414.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001548/0.2984, allocations: 187.1 kB / 414.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005167/0.2989, allocations: 0.5061 MB / 415.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.2989, allocations: 0 / 415.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2989, allocations: 0 / 415.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.2989, allocations: 0 / 415.2 MB, free: 11.05 MB / 334.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.001518/0.3004, allocations: 0.7055 MB / 415.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.3005, allocations: 15.97 kB / 415.9 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.37e-05/0.3006, allocations: 62.72 kB / 416 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001882/0.3008, allocations: 40.56 kB / 416 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004503/0.3012, allocations: 337.2 kB / 416.4 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.479e-05/0.3013, allocations: 54.77 kB / 416.4 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001502/0.3015, allocations: 40.3 kB / 416.5 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005697/0.302, allocations: 320.5 kB / 416.8 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.3021, allocations: 3.938 kB / 416.8 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.098e-05/0.3021, allocations: 8 kB / 416.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.3021, allocations: 8 kB / 416.8 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006182/0.3027, allocations: 302 kB / 417.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001636/0.3044, allocations: 1.156 MB / 418.3 MB, free: 7.824 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005838/0.305, allocations: 298.7 kB / 418.5 MB, free: 7.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003044/0.3053, allocations: 169.6 kB / 418.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.3053, allocations: 4 kB / 418.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.3054, allocations: 34.56 kB / 418.7 MB, free: 7.301 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.472e-06/0.3054, allocations: 0 / 418.7 MB, free: 7.301 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.009443/0.3148, allocations: 2.422 MB / 421.2 MB, free: 4.801 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.49e-05/0.3149, allocations: 85.11 kB / 421.3 MB, free: 4.699 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003297/0.3152, allocations: 292.9 kB / 421.5 MB, free: 4.406 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.056e-05/0.3153, allocations: 33.7 kB / 421.6 MB, free: 4.367 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.3154, allocations: 168.4 kB / 421.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.3155, allocations: 145.8 kB / 421.9 MB, free: 4.055 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00014/0.3156, allocations: 78.11 kB / 422 MB, free: 3.969 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.3158, allocations: 346.7 kB / 422.3 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00039/0.3162, allocations: 164.8 kB / 422.5 MB, free: 3.461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004129/0.3166, allocations: 226.7 kB / 422.7 MB, free: 3.223 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008248/0.3174, allocations: 395.8 kB / 423.1 MB, free: 2.816 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.3174, allocations: 8 kB / 423.1 MB, free: 2.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001002/0.3184, allocations: 488.2 kB / 423.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.3185, allocations: 8 kB / 423.6 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.3185, allocations: 192 / 423.6 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.3185, allocations: 11.98 kB / 423.6 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005982/0.3191, allocations: 119.8 kB / 423.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.3191, allocations: 4 kB / 423.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003855/0.3195, allocations: 31.98 kB / 423.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.676e-05/0.3196, allocations: 19.98 kB / 423.7 MB, free: 2.133 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.000166/0.3197, allocations: 157.7 kB / 423.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.3198, allocations: 31.62 kB / 423.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001799/0.3217, allocations: 0.6486 MB / 424.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.3217, allocations: 11.94 kB / 424.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3217, allocations: 0 / 424.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.405e-06/0.3217, allocations: 3.984 kB / 424.6 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003185/0.3249, allocations: 1.283 MB / 425.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.3249, allocations: 4 kB / 425.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004531/0.3254, allocations: 87.88 kB / 426 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001599/0.327, allocations: 264.6 kB / 426.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.087e-05/0.327, allocations: 20 kB / 426.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003926/0.331, allocations: 2.435 MB / 428.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.331, allocations: 4.031 kB / 428.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00221/0.3332, allocations: 1.004 MB / 429.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001833/0.3334, allocations: 152.6 kB / 429.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.663e-05/0.3335, allocations: 12 kB / 429.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004566/0.3339, allocations: 27.98 kB / 429.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.3341, allocations: 36.38 kB / 429.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.999e-05/0.3341, allocations: 12 kB / 429.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002124/0.3343, allocations: 212.5 kB / 430.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3343, allocations: 0 / 430.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005455/0.3349, allocations: 120 kB / 430.2 MB, free: 11.36 MB / 350.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.002664/0.3375, allocations: 1.598 MB / 431.8 MB, free: 9.734 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009337/0.3385, allocations: 426 kB / 432.3 MB, free: 9.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3385, allocations: 384 / 432.3 MB, free: 9.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006702/0.3392, allocations: 392.9 kB / 432.6 MB, free: 8.926 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005148/0.3397, allocations: 39.55 kB / 432.7 MB, free: 8.891 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005644/0.3454, allocations: 3.856 MB / 436.5 MB, free: 4.906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003349/0.3457, allocations: 0.7891 MB / 437.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001928/0.3459, allocations: 38.97 kB / 437.4 MB, free: 4.051 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002154/0.3461, allocations: 123.3 kB / 437.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3462, allocations: 0 / 437.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03307/0.3792, allocations: 9.948 MB / 447.4 MB, free: 10.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.02, allocations: 17.52 kB / 447.4 MB, free: 10.18 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > 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