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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_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.001147/0.001147, allocations: 100.4 kB / 17.58 MB, free: 5.418 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.001146/0.001147, allocations: 192 kB / 18.51 MB, free: 4.508 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.437/1.437, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001465/0.001465, allocations: 47.92 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0826/0.08408, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004202/0.08831, allocations: 2.766 MB / 330.2 MB, free: 1.582 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002088/0.09042, allocations: 1.27 MB / 331.4 MB, free: 308 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002375/0.0907, allocations: 7.938 kB / 331.4 MB, free: 300 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000299/0.09101, allocations: 71.42 kB / 331.5 MB, free: 228 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007108/0.09173, allocations: 223 kB / 331.7 MB, free: 4 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003431/0.09209, allocations: 119.8 kB / 331.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005715/0.09267, allocations: 459 kB / 332.3 MB, free: 15.44 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001858/0.09287, allocations: 88.62 kB / 332.4 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000317/0.09319, allocations: 183.5 kB / 332.5 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003419/0.09354, allocations: 227.1 kB / 332.8 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.09366, allocations: 40 kB / 332.8 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003205/0.09398, allocations: 155.9 kB / 333 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.809e-05/0.09408, allocations: 99.7 kB / 333.1 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001962/0.09428, allocations: 187.1 kB / 333.2 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000563/0.09486, allocations: 498.4 kB / 333.7 MB, free: 13.99 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.09487, allocations: 4 kB / 333.7 MB, free: 13.99 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.09488, allocations: 0 / 333.7 MB, free: 13.99 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.09489, allocations: 0 / 333.7 MB, free: 13.99 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.001653/0.09655, allocations: 0.7055 MB / 334.4 MB, free: 13.23 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.0966, allocations: 8.031 kB / 334.4 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.083e-05/0.09669, allocations: 62.72 kB / 334.5 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.751e-05/0.09679, allocations: 36.56 kB / 334.5 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004366/0.09723, allocations: 333 kB / 334.9 MB, free: 12.75 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.244e-05/0.09732, allocations: 50.83 kB / 334.9 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001616/0.09749, allocations: 44.3 kB / 335 MB, free: 12.65 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000621/0.09812, allocations: 320.5 kB / 335.3 MB, free: 12.33 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.09815, allocations: 7.922 kB / 335.3 MB, free: 12.32 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.312e-05/0.09819, allocations: 8 kB / 335.3 MB, free: 12.31 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.0982, allocations: 8 kB / 335.3 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006991/0.09891, allocations: 298 kB / 335.6 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001898/0.1008, allocations: 1.167 MB / 336.8 MB, free: 10.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006296/0.1015, allocations: 297 kB / 337 MB, free: 10.46 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000342/0.1018, allocations: 161.6 kB / 337.2 MB, free: 10.3 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.1019, allocations: 0 / 337.2 MB, free: 10.3 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.1019, allocations: 46.5 kB / 337.2 MB, free: 10.24 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 2.605e-06/0.1019, allocations: 3.984 kB / 337.3 MB, free: 10.24 MB / 286.1 MB Notification: Performance of matching and sorting (n=42): time 0.009556/0.1115, allocations: 2.408 MB / 339.7 MB, free: 7.754 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.764e-05/0.1115, allocations: 81.11 kB / 339.7 MB, free: 7.656 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003639/0.1119, allocations: 296.9 kB / 340 MB, free: 7.352 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.025e-05/0.112, allocations: 33.7 kB / 340.1 MB, free: 7.312 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.1121, allocations: 168.4 kB / 340.2 MB, free: 7.145 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.1122, allocations: 145.8 kB / 340.4 MB, free: 7 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001469/0.1124, allocations: 82.02 kB / 340.4 MB, free: 6.914 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.1125, allocations: 342.8 kB / 340.8 MB, free: 6.57 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004126/0.1129, allocations: 168.7 kB / 340.9 MB, free: 6.406 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004393/0.1134, allocations: 234.6 kB / 341.2 MB, free: 6.16 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008615/0.1143, allocations: 403.6 kB / 341.6 MB, free: 5.746 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1143, allocations: 0 / 341.6 MB, free: 5.746 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001053/0.1153, allocations: 484.5 kB / 342 MB, free: 5.266 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.1154, allocations: 8 kB / 342.1 MB, free: 5.258 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.1154, allocations: 0 / 342.1 MB, free: 5.258 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.1154, allocations: 4 kB / 342.1 MB, free: 5.254 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006167/0.116, allocations: 120 kB / 342.2 MB, free: 5.137 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.1161, allocations: 0 / 342.2 MB, free: 5.137 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004013/0.1165, allocations: 39.88 kB / 342.2 MB, free: 5.098 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.637e-05/0.1165, allocations: 19.98 kB / 342.2 MB, free: 5.078 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.000166/0.1167, allocations: 157.7 kB / 342.4 MB, free: 4.914 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.587e-05/0.1168, allocations: 27.72 kB / 342.4 MB, free: 4.887 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001906/0.1187, allocations: 0.6486 MB / 343.1 MB, free: 4.223 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.1187, allocations: 8 kB / 343.1 MB, free: 4.215 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1187, allocations: 0 / 343.1 MB, free: 4.215 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.1187, allocations: 3.984 kB / 343.1 MB, free: 4.211 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003153/0.1219, allocations: 1.275 MB / 344.3 MB, free: 2.879 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.1219, allocations: 4 kB / 344.4 MB, free: 2.875 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004634/0.1224, allocations: 83.89 kB / 344.4 MB, free: 2.793 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001592/0.124, allocations: 276.5 kB / 344.7 MB, free: 2.52 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.846e-05/0.124, allocations: 8 kB / 344.7 MB, free: 2.512 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004085/0.1281, allocations: 2.451 MB / 347.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.1282, allocations: 3.938 kB / 347.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002258/0.1304, allocations: 1.006 MB / 348.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001768/0.1306, allocations: 148.7 kB / 348.3 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.541e-05/0.1307, allocations: 15.94 kB / 348.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004532/0.1311, allocations: 27.97 kB / 348.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.1313, allocations: 36.39 kB / 348.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.095e-05/0.1313, allocations: 11.98 kB / 348.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002123/0.1315, allocations: 216.5 kB / 348.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1315, allocations: 0 / 348.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005464/0.1321, allocations: 116 kB / 348.7 MB, free: 14.31 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.002666/0.1348, allocations: 1.579 MB / 350.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001072/0.1358, allocations: 458 kB / 350.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1359, allocations: 0 / 350.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006908/0.1366, allocations: 388.8 kB / 351.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005496/0.1371, allocations: 40.8 kB / 351.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005757/0.1429, allocations: 3.856 MB / 355 MB, free: 7.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.1433, allocations: 0.793 MB / 355.8 MB, free: 7.016 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000224/0.1435, allocations: 43.05 kB / 355.9 MB, free: 6.973 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002188/0.1437, allocations: 119.3 kB / 356 MB, free: 6.855 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1437, allocations: 0 / 356 MB, free: 6.855 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03267/0.1764, allocations: 9.534 MB / 365.5 MB, free: 13.25 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.54/14.72, allocations: 11.84 kB / 365.5 MB, free: 13.24 MB / 318.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 4e-06 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches