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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 116.9 kB / 18.45 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001708/0.001708, allocations: 213.6 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.44/1.44, allocations: 207.6 MB / 231.8 MB, free: 4.043 MB / 174.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001825/0.001825, allocations: 47.94 kB / 342.3 MB, free: 9.996 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09799/0.09981, allocations: 49.12 MB / 391.4 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004339/0.1042, allocations: 2.777 MB / 394.2 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002337/0.1065, allocations: 1.293 MB / 395.5 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002482/0.1067, allocations: 7.938 kB / 395.5 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003457/0.1071, allocations: 75.36 kB / 395.6 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000655/0.1077, allocations: 222.7 kB / 395.8 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000305/0.108, allocations: 119.8 kB / 395.9 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000533/0.1086, allocations: 463 kB / 396.3 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001932/0.1088, allocations: 72.48 kB / 396.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003157/0.1091, allocations: 179.5 kB / 396.6 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003343/0.1094, allocations: 223.2 kB / 396.8 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.205e-05/0.1095, allocations: 44 kB / 396.9 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003265/0.1098, allocations: 167.9 kB / 397 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.027e-05/0.1099, allocations: 87.67 kB / 397.1 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000186/0.1101, allocations: 183.2 kB / 397.3 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006745/0.1108, allocations: 0.5097 MB / 397.8 MB, free: 2.289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1108, allocations: 0 / 397.8 MB, free: 2.289 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1108, allocations: 0 / 397.8 MB, free: 2.289 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.1108, allocations: 3.984 kB / 397.8 MB, free: 2.285 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.001824/0.1126, allocations: 0.7168 MB / 398.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.1127, allocations: 8.031 kB / 398.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.806e-05/0.1127, allocations: 62.72 kB / 398.6 MB, free: 1.441 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/0.1128, allocations: 36.75 kB / 398.6 MB, free: 1.406 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005715/0.1134, allocations: 337.1 kB / 398.9 MB, free: 1.035 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.784e-05/0.1135, allocations: 50.83 kB / 399 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001768/0.1137, allocations: 44.25 kB / 399 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006508/0.1143, allocations: 312.5 kB / 399.3 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.1143, allocations: 0 / 399.3 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.953e-05/0.1144, allocations: 12 kB / 399.4 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.1144, allocations: 15.98 kB / 399.4 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007348/0.1151, allocations: 298 kB / 399.7 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002018/0.1171, allocations: 1.156 MB / 400.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006561/0.1178, allocations: 281 kB / 401.1 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003522/0.1182, allocations: 157.5 kB / 401.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.938e-05/0.1182, allocations: 4 kB / 401.3 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.822e-05/0.1182, allocations: 34.56 kB / 401.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.543e-06/0.1182, allocations: 4 kB / 401.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.009844/0.1281, allocations: 2.421 MB / 403.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.507e-05/0.1281, allocations: 85.09 kB / 403.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004046/0.1285, allocations: 289 kB / 404.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.599e-05/0.1286, allocations: 33.7 kB / 404.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.1287, allocations: 176.5 kB / 404.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.1289, allocations: 154.7 kB / 404.4 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001657/0.129, allocations: 82.06 kB / 404.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.1292, allocations: 342.8 kB / 404.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004182/0.1296, allocations: 164.8 kB / 405 MB, free: 10.71 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004592/0.1301, allocations: 226.6 kB / 405.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009134/0.131, allocations: 411.6 kB / 405.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.131, allocations: 0 / 405.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001124/0.1321, allocations: 480.7 kB / 406.1 MB, free: 9.574 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.1321, allocations: 12.19 kB / 406.1 MB, free: 9.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.1321, allocations: 0 / 406.1 MB, free: 9.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.1322, allocations: 4 kB / 406.1 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006322/0.1328, allocations: 123.8 kB / 406.2 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.1328, allocations: 0 / 406.2 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004045/0.1332, allocations: 39.91 kB / 406.3 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.181e-05/0.1333, allocations: 23.98 kB / 406.3 MB, free: 9.375 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.0001975/0.1335, allocations: 149.7 kB / 406.4 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.952e-05/0.1336, allocations: 31.81 kB / 406.5 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002037/0.1356, allocations: 0.6486 MB / 407.1 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.485e-06/0.1356, allocations: 4 kB / 407.1 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1356, allocations: 0 / 407.1 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.1356, allocations: 0 / 407.1 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003316/0.1389, allocations: 1.272 MB / 408.4 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.1389, allocations: 0 / 408.4 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004739/0.1394, allocations: 99.81 kB / 408.5 MB, free: 7.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001641/0.141, allocations: 272.5 kB / 408.8 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.119e-05/0.1411, allocations: 8 kB / 408.8 MB, free: 6.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004439/0.1455, allocations: 2.451 MB / 411.2 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.1455, allocations: 3.984 kB / 411.2 MB, free: 4.227 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002454/0.148, allocations: 0.9998 MB / 412.2 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002178/0.1482, allocations: 156.8 kB / 412.4 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.744e-05/0.1483, allocations: 8 kB / 412.4 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004472/0.1487, allocations: 31.97 kB / 412.4 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.1488, allocations: 32.39 kB / 412.4 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.485e-05/0.1489, allocations: 15.98 kB / 412.5 MB, free: 2.949 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002567/0.1491, allocations: 216.4 kB / 412.7 MB, free: 2.738 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1491, allocations: 0 / 412.7 MB, free: 2.738 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000581/0.1497, allocations: 119.9 kB / 412.8 MB, free: 2.621 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.002937/0.1526, allocations: 1.579 MB / 414.4 MB, free: 1.012 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.1537, allocations: 414.4 kB / 414.8 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1537, allocations: 4.062 kB / 414.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007864/0.1545, allocations: 365 kB / 415.1 MB, free: 236 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005258/0.155, allocations: 48.55 kB / 415.2 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006458/0.1614, allocations: 3.861 MB / 419 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004482/0.1619, allocations: 0.793 MB / 419.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002226/0.1621, allocations: 42.97 kB / 419.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002673/0.1624, allocations: 119.5 kB / 420 MB, free: 11.22 MB / 350.1 MB Notification: Performance of SimCode: time 8.32e-07/0.1624, allocations: 3.938 kB / 420 MB, free: 11.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04975/0.2121, allocations: 9.716 MB / 429.7 MB, free: 1.438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.2, allocations: 3.984 kB / 429.7 MB, free: 1.434 MB / 350.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.909814708997146]