Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.001843/0.001843, 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.002016/0.002016, 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.394/1.394, allocations: 225.6 MB / 249.1 MB, free: 3.633 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.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 51.92 kB / 365.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.104, allocations: 52.15 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.00517/0.1092, allocations: 3.513 MB / 421.3 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001795/0.111, allocations: 0.9308 MB / 422.2 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000237/0.1112, allocations: 8 kB / 422.2 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003112/0.1115, allocations: 91.11 kB / 422.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004127/0.112, allocations: 166.7 kB / 422.5 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003899/0.1123, allocations: 179.6 kB / 422.7 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006607/0.113, allocations: 0.6154 MB / 423.3 MB, free: 7.113 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002826/0.1133, allocations: 149.5 kB / 423.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003462/0.1136, allocations: 243 kB / 423.7 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000314/0.114, allocations: 274.7 kB / 423.9 MB, free: 6.449 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.883e-05/0.114, allocations: 52 kB / 424 MB, free: 6.398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.132e-05/0.1141, allocations: 52 kB / 424 MB, free: 6.348 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.1142, allocations: 127.5 kB / 424.2 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002511/0.1145, allocations: 278.5 kB / 424.4 MB, free: 5.949 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007134/0.1152, allocations: 0.63 MB / 425.1 MB, free: 5.316 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1152, allocations: 0 / 425.1 MB, free: 5.316 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1152, allocations: 0 / 425.1 MB, free: 5.316 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.1152, allocations: 0 / 425.1 MB, free: 5.316 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001616/0.1168, allocations: 0.8765 MB / 425.9 MB, free: 4.391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1169, allocations: 8.031 kB / 425.9 MB, free: 4.383 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001129/0.117, allocations: 90.7 kB / 426 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.1171, allocations: 64.56 kB / 426.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005346/0.1176, allocations: 347.3 kB / 426.4 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.616e-05/0.1177, allocations: 37.69 kB / 426.5 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.256e-05/0.1178, allocations: 52.12 kB / 426.5 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000841/0.1186, allocations: 446.4 kB / 427 MB, free: 3.316 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.1186, allocations: 3.938 kB / 427 MB, free: 3.312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.388e-05/0.1187, allocations: 20 kB / 427 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.1187, allocations: 12 kB / 427 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008782/0.1196, allocations: 389 kB / 427.4 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002598/0.1221, allocations: 1.574 MB / 428.9 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007337/0.1229, allocations: 386.7 kB / 429.3 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000416/0.1233, allocations: 167.6 kB / 429.5 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.551e-05/0.1233, allocations: 4.328 kB / 429.5 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.826e-05/0.1234, allocations: 42.89 kB / 429.5 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.783e-06/0.1234, allocations: 0 / 429.5 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.003294/0.1267, allocations: 1.192 MB / 430.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.58e-05/0.1267, allocations: 55.97 kB / 430.8 MB, free: 15.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004824/0.1272, allocations: 401.5 kB / 431.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.884e-05/0.1272, allocations: 37.7 kB / 431.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002493/0.1275, allocations: 304.7 kB / 431.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001774/0.1277, allocations: 206.3 kB / 431.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001778/0.1278, allocations: 106.3 kB / 431.8 MB, free: 14.26 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.128, allocations: 354.8 kB / 432.2 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004508/0.1285, allocations: 181.2 kB / 432.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005317/0.129, allocations: 299 kB / 432.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009484/0.13, allocations: 494.5 kB / 433.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.864e-06/0.13, allocations: 11.92 kB / 433.1 MB, free: 12.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001504/0.1315, allocations: 0.7345 MB / 433.9 MB, free: 12.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.1315, allocations: 8 kB / 433.9 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.1315, allocations: 8 kB / 433.9 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005601/0.1321, allocations: 184.1 kB / 434 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004823/0.1325, allocations: 111.8 kB / 434.2 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004728/0.1373, allocations: 4.273 MB / 438.4 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000418/0.1377, allocations: 27.98 kB / 438.5 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.922e-05/0.1377, allocations: 27.94 kB / 438.5 MB, free: 7.191 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 (58): * Single equations (assignments): 56 * 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,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002501/0.138, allocations: 181.7 kB / 438.7 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.811e-05/0.1381, allocations: 55.66 kB / 438.7 MB, free: 6.949 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001284/0.1382, allocations: 60.97 kB / 438.8 MB, free: 6.891 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.1382, allocations: 8 kB / 438.8 MB, free: 6.883 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.674e-05/0.1382, allocations: 4 kB / 438.8 MB, free: 6.879 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.1382, allocations: 3.984 kB / 438.8 MB, free: 6.875 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00239/0.1406, allocations: 1.284 MB / 440.1 MB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.1406, allocations: 0 / 440.1 MB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002997/0.1409, allocations: 71.89 kB / 440.1 MB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004235/0.1413, allocations: 165.6 kB / 440.3 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.721e-05/0.1414, allocations: 12 kB / 440.3 MB, free: 5.262 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004237/0.1456, allocations: 4.099 MB / 444.4 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1456, allocations: 0 / 444.4 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001301/0.1469, allocations: 0.6978 MB / 445.1 MB, free: 160 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001372/0.1471, allocations: 128.7 kB / 445.2 MB, free: 12 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.875e-05/0.1471, allocations: 8 kB / 445.2 MB, free: 4 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.2033/0.3504, allocations: 21.61 kB / 445.3 MB, free: 29.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000175/0.3506, allocations: 44.22 kB / 445.3 MB, free: 29.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.938e-05/0.3506, allocations: 15.95 kB / 445.3 MB, free: 29.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003147/0.351, allocations: 281.1 kB / 445.6 MB, free: 29.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.351, allocations: 1.688 kB / 445.6 MB, free: 29.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009062/0.3519, allocations: 152.3 kB / 445.8 MB, free: 29.52 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (35): * Single equations (assignments): 33 * 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,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001405/0.3533, allocations: 1.242 MB / 447 MB, free: 28.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.3547, allocations: 0.7656 MB / 447.8 MB, free: 28.58 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.3547, allocations: 0 / 447.8 MB, free: 28.58 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006964/0.3554, allocations: 0.5072 MB / 448.3 MB, free: 28.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00044/0.3559, allocations: 45.08 kB / 448.3 MB, free: 28.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006021/0.3619, allocations: 4.62 MB / 452.9 MB, free: 26.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003675/0.3622, allocations: 0.8598 MB / 453.8 MB, free: 25.83 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001949/0.3624, allocations: 44.77 kB / 453.8 MB, free: 25.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002146/0.3627, allocations: 177.7 kB / 454 MB, free: 25.82 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3627, allocations: 1.469 kB / 454 MB, free: 25.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04404/0.4067, allocations: 9.812 MB / 463.8 MB, free: 24.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.35, allocations: 1.875 kB / 463.8 MB, free: 24.18 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.69086886383593]