Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 119.9 kB / 17.79 MB, free: 5.137 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001959/0.001959, allocations: 185.2 kB / 20.73 MB, free: 2.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 225.6 MB / 249.1 MB, free: 3.594 MB / 190.1 MB " [Timeout remaining time 178] 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.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 55.86 kB / 365.6 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09838/0.09991, allocations: 52.14 MB / 417.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004211/0.1041, allocations: 2.847 MB / 420.6 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.1055, allocations: 0.7554 MB / 421.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001527/0.1057, allocations: 4 kB / 421.4 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002275/0.1059, allocations: 63.42 kB / 421.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003036/0.1062, allocations: 103.2 kB / 421.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002827/0.1065, allocations: 103.8 kB / 421.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004145/0.1069, allocations: 398.5 kB / 422 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001958/0.1071, allocations: 86.95 kB / 422.1 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002515/0.1074, allocations: 159.4 kB / 422.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.1076, allocations: 179.2 kB / 422.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.64e-05/0.1076, allocations: 40 kB / 422.5 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.086e-05/0.1077, allocations: 32 kB / 422.5 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.097e-05/0.1078, allocations: 79.69 kB / 422.6 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001692/0.1079, allocations: 179.1 kB / 422.8 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004436/0.1084, allocations: 406.3 kB / 423.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1084, allocations: 0 / 423.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1084, allocations: 0 / 423.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.1084, allocations: 0 / 423.2 MB, free: 7.148 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001215/0.1096, allocations: 0.6642 MB / 423.8 MB, free: 6.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.1096, allocations: 8.031 kB / 423.9 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.7e-05/0.1097, allocations: 70.72 kB / 423.9 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.468e-05/0.1098, allocations: 36.7 kB / 424 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004353/0.1102, allocations: 284.7 kB / 424.2 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.1102, allocations: 25.03 kB / 424.3 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.721e-05/0.1103, allocations: 28.38 kB / 424.3 MB, free: 5.945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005479/0.1108, allocations: 290.2 kB / 424.6 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.1108, allocations: 0 / 424.6 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.762e-05/0.1109, allocations: 16 kB / 424.6 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.1109, allocations: 8 kB / 424.6 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006/0.1115, allocations: 258.4 kB / 424.8 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001681/0.1132, allocations: 1.112 MB / 426 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003565/0.1135, allocations: 154.4 kB / 426.1 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.1137, allocations: 64.83 kB / 426.2 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.1137, allocations: 3.984 kB / 426.2 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.1137, allocations: 38.5 kB / 426.2 MB, free: 3.887 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.272e-06/0.1138, allocations: 4 kB / 426.2 MB, free: 3.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002064/0.1158, allocations: 0.5903 MB / 426.8 MB, free: 3.281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.755e-05/0.1159, allocations: 67.33 kB / 426.9 MB, free: 3.203 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003115/0.1162, allocations: 278.6 kB / 427.1 MB, free: 2.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/0.1162, allocations: 25.7 kB / 427.2 MB, free: 2.898 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.1164, allocations: 232.1 kB / 427.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.556e-05/0.1164, allocations: 83.3 kB / 427.5 MB, free: 2.586 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.1165, allocations: 65.66 kB / 427.5 MB, free: 2.516 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.1167, allocations: 334.8 kB / 427.9 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002858/0.117, allocations: 103.9 kB / 428 MB, free: 2.078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003563/0.1173, allocations: 196 kB / 428.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006241/0.118, allocations: 301.8 kB / 428.5 MB, free: 1.504 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.118, allocations: 0 / 428.5 MB, free: 1.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008508/0.1188, allocations: 401.3 kB / 428.9 MB, free: 1.102 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.1188, allocations: 8 kB / 428.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.1188, allocations: 4 kB / 428.9 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002428/0.1191, allocations: 61.77 kB / 428.9 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003273/0.1194, allocations: 71.89 kB / 429 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00224/0.1216, allocations: 2.837 MB / 431.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002671/0.1219, allocations: 23.97 kB / 431.9 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.533e-05/0.1219, allocations: 16 kB / 431.9 MB, free: 13.79 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001626/0.1221, allocations: 149.8 kB / 432 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.233e-05/0.1222, allocations: 23.86 kB / 432 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.162e-05/0.1222, allocations: 34.17 kB / 432.1 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.1222, allocations: 7.938 kB / 432.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.1222, allocations: 3.938 kB / 432.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1222, allocations: 0 / 432.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003757/0.1226, allocations: 333.4 kB / 432.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1226, allocations: 0 / 432.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002053/0.1228, allocations: 43.91 kB / 432.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000156/0.123, allocations: 65.8 kB / 432.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.123, allocations: 0 / 432.5 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0021/0.1251, allocations: 2.837 MB / 435.4 MB, free: 9.961 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1251, allocations: 0 / 435.4 MB, free: 9.961 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007033/0.1258, allocations: 376.8 kB / 435.7 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.263e-05/0.1259, allocations: 108.9 kB / 435.8 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.837e-05/0.1259, allocations: 0 / 435.8 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002039/0.1261, allocations: 15.98 kB / 435.8 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.906e-05/0.1262, allocations: 23.97 kB / 435.9 MB, free: 9.406 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.1262, allocations: 4 kB / 435.9 MB, free: 9.402 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001988/0.1264, allocations: 198 kB / 436.1 MB, free: 9.211 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1264, allocations: 0 / 436.1 MB, free: 9.211 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003736/0.1268, allocations: 72 kB / 436.1 MB, free: 9.141 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001035/0.1278, allocations: 0.9115 MB / 437 MB, free: 8.199 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009392/0.1287, allocations: 474.4 kB / 437.5 MB, free: 7.711 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1287, allocations: 0.8125 kB / 437.5 MB, free: 7.711 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005101/0.1292, allocations: 345.2 kB / 437.8 MB, free: 7.348 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003607/0.1296, allocations: 28.55 kB / 437.9 MB, free: 7.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004407/0.134, allocations: 3.023 MB / 440.9 MB, free: 4.125 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.1344, allocations: 0.7675 MB / 441.7 MB, free: 3.332 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001224/0.1345, allocations: 34.31 kB / 441.7 MB, free: 3.297 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001517/0.1347, allocations: 95.41 kB / 441.8 MB, free: 3.203 MB / 366.1 MB Notification: Performance of SimCode: time 6.62e-07/0.1347, allocations: 4 kB / 441.8 MB, free: 3.199 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2647/0.3994, allocations: 5.772 MB / 447.6 MB, free: 30.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/10.8, allocations: 11.55 kB / 447.6 MB, free: 30.2 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreQuadraticCrossSection/ToroidalCoreQuadraticCrossSection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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: 13.273466110229492]