Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.001362/0.001362, allocations: 123.9 kB / 17.79 MB, free: 5.266 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.001364/0.001364, allocations: 185.2 kB / 20.73 MB, free: 2.332 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.445/1.445, 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.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 51.91 kB / 365.6 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1038, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004476/0.1082, allocations: 2.808 MB / 420.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001356/0.1096, allocations: 0.7555 MB / 421.3 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.1097, allocations: 4 kB / 421.3 MB, free: 9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002174/0.1099, allocations: 63.42 kB / 421.4 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002647/0.1102, allocations: 99.19 kB / 421.5 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002706/0.1105, allocations: 111.7 kB / 421.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004008/0.1109, allocations: 382.6 kB / 422 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/0.1111, allocations: 90.94 kB / 422.1 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/0.1113, allocations: 163.4 kB / 422.2 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002052/0.1115, allocations: 171.2 kB / 422.4 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.576e-05/0.1116, allocations: 32 kB / 422.4 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.85e-05/0.1116, allocations: 32 kB / 422.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.81e-05/0.1117, allocations: 75.69 kB / 422.5 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001601/0.1118, allocations: 175.1 kB / 422.7 MB, free: 7.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004262/0.1123, allocations: 398.3 kB / 423.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1123, allocations: 0 / 423.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1123, allocations: 0 / 423.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1123, allocations: 0 / 423.1 MB, free: 7.234 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.001194/0.1135, allocations: 0.6467 MB / 423.7 MB, free: 6.539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.1135, allocations: 12.03 kB / 423.8 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.744e-05/0.1136, allocations: 66.72 kB / 423.8 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.782e-05/0.1137, allocations: 40.7 kB / 423.9 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003903/0.114, allocations: 276.1 kB / 424.1 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.018e-05/0.1141, allocations: 21.03 kB / 424.2 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.242e-05/0.1141, allocations: 36.31 kB / 424.2 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005854/0.1147, allocations: 294.2 kB / 424.5 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.1147, allocations: 0 / 424.5 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.895e-05/0.1148, allocations: 16 kB / 424.5 MB, free: 5.738 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.1148, allocations: 11.94 kB / 424.5 MB, free: 5.727 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005928/0.1154, allocations: 246.5 kB / 424.7 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.1171, allocations: 1.108 MB / 425.9 MB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003789/0.1175, allocations: 160.6 kB / 426 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/0.1176, allocations: 60.83 kB / 426.1 MB, free: 4.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.1177, allocations: 7.984 kB / 426.1 MB, free: 4.043 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.1177, allocations: 30.56 kB / 426.1 MB, free: 4.004 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.252e-06/0.1177, allocations: 0 / 426.1 MB, free: 4.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001971/0.1197, allocations: 0.5976 MB / 426.7 MB, free: 3.395 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.717e-05/0.1197, allocations: 51.41 kB / 426.8 MB, free: 3.332 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002883/0.12, allocations: 270.4 kB / 427 MB, free: 3.066 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.12, allocations: 33.7 kB / 427.1 MB, free: 3.027 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000161/0.1202, allocations: 232.1 kB / 427.3 MB, free: 2.797 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.125e-05/0.1202, allocations: 87.25 kB / 427.4 MB, free: 2.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.945e-05/0.1203, allocations: 65.66 kB / 427.4 MB, free: 2.641 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.1205, allocations: 330.8 kB / 427.7 MB, free: 2.309 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002755/0.1208, allocations: 91.94 kB / 427.8 MB, free: 2.219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003593/0.1211, allocations: 203.9 kB / 428 MB, free: 1.973 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006252/0.1218, allocations: 297.8 kB / 428.3 MB, free: 1.641 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1218, allocations: 4 kB / 428.3 MB, free: 1.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000839/0.1226, allocations: 389.5 kB / 428.7 MB, free: 1.246 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.1226, allocations: 4 kB / 428.7 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.1226, allocations: 7.984 kB / 428.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002547/0.1229, allocations: 57.69 kB / 428.8 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003181/0.1232, allocations: 75.89 kB / 428.9 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002269/0.1255, allocations: 2.837 MB / 431.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002647/0.1257, allocations: 24.11 kB / 431.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.684e-05/0.1258, allocations: 16 kB / 431.7 MB, free: 13.94 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.0001682/0.1259, allocations: 153.7 kB / 431.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.112e-05/0.126, allocations: 23.81 kB / 431.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.063e-05/0.1261, allocations: 34.17 kB / 431.9 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.1261, allocations: 4 kB / 431.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.1261, allocations: 4 kB / 431.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1261, allocations: 3.984 kB / 432 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003862/0.1265, allocations: 329.4 kB / 432.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.1265, allocations: 0 / 432.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000201/0.1267, allocations: 35.97 kB / 432.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001555/0.1268, allocations: 65.73 kB / 432.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.1268, allocations: 4 kB / 432.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002174/0.129, allocations: 2.829 MB / 435.2 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.129, allocations: 0 / 435.2 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007397/0.1297, allocations: 378.9 kB / 435.6 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.509e-05/0.1298, allocations: 104.9 kB / 435.7 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.989e-05/0.1299, allocations: 4 kB / 435.7 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/0.1301, allocations: 19.97 kB / 435.7 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.697e-05/0.1301, allocations: 19.86 kB / 435.7 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.1301, allocations: 11.98 kB / 435.7 MB, free: 9.555 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001806/0.1303, allocations: 182 kB / 435.9 MB, free: 9.379 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1303, allocations: 0 / 435.9 MB, free: 9.379 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003809/0.1307, allocations: 76 kB / 436 MB, free: 9.305 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.001042/0.1317, allocations: 0.9095 MB / 436.9 MB, free: 8.363 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009181/0.1327, allocations: 470.6 kB / 437.4 MB, free: 7.879 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.1327, allocations: 0 / 437.4 MB, free: 7.879 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005104/0.1332, allocations: 341.2 kB / 437.7 MB, free: 7.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003482/0.1335, allocations: 29.23 kB / 437.7 MB, free: 7.492 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004339/0.1379, allocations: 2.945 MB / 440.7 MB, free: 4.359 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004099/0.1383, allocations: 0.7675 MB / 441.4 MB, free: 3.566 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001313/0.1384, allocations: 38.31 kB / 441.5 MB, free: 3.531 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001391/0.1385, allocations: 99.41 kB / 441.6 MB, free: 3.434 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1385, allocations: 0 / 441.6 MB, free: 3.434 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2251/0.3636, allocations: 5.599 MB / 447.2 MB, free: 30.42 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.5/10.87, allocations: 16.81 kB / 447.2 MB, free: 30.41 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.32529691979289]