Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.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.00121/0.00121, allocations: 107.5 kB / 21.22 MB, free: 0.6289 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.00121/0.00121, allocations: 212.3 kB / 24.51 MB, free: 3.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.291/1.291, allocations: 230.6 MB / 258.3 MB, free: 7.719 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 51.92 kB / 378.5 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2121/0.2135, allocations: 53.38 MB / 431.9 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.00613/0.2196, allocations: 4.685 MB / 436.6 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002396/0.222, allocations: 1.654 MB / 438.2 MB, free: 220 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001854/0.2222, allocations: 16 kB / 438.2 MB, free: 204 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002833/0.225, allocations: 1.31 MB / 439.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005864/0.2256, allocations: 325.6 kB / 439.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001183/0.2268, allocations: 0.6074 MB / 440.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008074/0.2276, allocations: 0.8052 MB / 441.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009212/0.2285, allocations: 0.6713 MB / 441.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003745/0.2289, allocations: 362.7 kB / 442.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000515/0.2294, allocations: 466.1 kB / 442.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.547e-05/0.2295, allocations: 72 kB / 442.8 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004229/0.23, allocations: 259.8 kB / 443.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001486/0.2301, allocations: 183.2 kB / 443.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003179/0.2304, allocations: 342.4 kB / 443.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001208/0.2316, allocations: 1.212 MB / 444.8 MB, free: 9.598 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.2316, allocations: 4 kB / 444.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2316, allocations: 0 / 444.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.2316, allocations: 0 / 444.8 MB, free: 9.594 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003761/0.2354, allocations: 1.398 MB / 446.2 MB, free: 8.164 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.2354, allocations: 8.031 kB / 446.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.058e-05/0.2355, allocations: 30.12 kB / 446.2 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000164/0.2356, allocations: 152.4 kB / 446.4 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001603/0.2372, allocations: 240.2 kB / 446.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002028/0.2374, allocations: 213.3 kB / 446.8 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.627e-05/0.2375, allocations: 74.38 kB / 446.9 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001497/0.2376, allocations: 96.38 kB / 447 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001541/0.2392, allocations: 0.9538 MB / 448 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.166e-05/0.2392, allocations: 11.94 kB / 448 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.98e-05/0.2393, allocations: 40 kB / 448 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.275e-05/0.2393, allocations: 24 kB / 448 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.2406, allocations: 0.7815 MB / 448.8 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004715/0.2454, allocations: 2.827 MB / 451.6 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/0.2471, allocations: 0.8785 MB / 452.5 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005004/0.2476, allocations: 325.1 kB / 452.8 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001015/0.2477, allocations: 40.91 kB / 452.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.258e-05/0.2478, allocations: 43.5 kB / 452.9 MB, free: 1.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=87): time 2.094e-06/0.2478, allocations: 0 / 452.9 MB, free: 1.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=87): time 0.002016/0.2498, allocations: 1.003 MB / 453.9 MB, free: 244 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/0.2498, allocations: 90.11 kB / 454 MB, free: 132 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004154/0.2502, allocations: 364.4 kB / 454.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.511e-05/0.2503, allocations: 41.7 kB / 454.4 MB, free: 15.72 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002531/0.2505, allocations: 392.2 kB / 454.8 MB, free: 15.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002372/0.2508, allocations: 317.3 kB / 455.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002571/0.251, allocations: 170.9 kB / 455.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.2512, allocations: 366.7 kB / 455.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004625/0.2517, allocations: 274.5 kB / 455.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006251/0.2523, allocations: 475.4 kB / 456.4 MB, free: 13.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.2534, allocations: 0.7784 MB / 457.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.2534, allocations: 0 / 457.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001631/0.2551, allocations: 0.9849 MB / 458.1 MB, free: 11.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.2551, allocations: 8.031 kB / 458.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.2551, allocations: 8 kB / 458.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003525/0.2554, allocations: 123.3 kB / 458.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007642/0.2562, allocations: 211.6 kB / 458.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004426/0.2606, allocations: 5.681 MB / 464.1 MB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004796/0.2611, allocations: 107.4 kB / 464.2 MB, free: 5.207 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.429e-05/0.2612, allocations: 44 kB / 464.3 MB, free: 5.164 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002755/0.2614, allocations: 231.9 kB / 464.5 MB, free: 4.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.2616, allocations: 55.67 kB / 464.6 MB, free: 4.875 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00148/0.263, allocations: 0.8444 MB / 465.4 MB, free: 4.012 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.263, allocations: 15.94 kB / 465.4 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.2631, allocations: 3.938 kB / 465.4 MB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.2631, allocations: 3.984 kB / 465.4 MB, free: 3.988 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002645/0.2657, allocations: 1.674 MB / 467.1 MB, free: 2.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.2657, allocations: 4 kB / 467.1 MB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005685/0.2663, allocations: 135.8 kB / 467.3 MB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002635/0.2665, allocations: 107.3 kB / 467.4 MB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.557e-05/0.2666, allocations: 23.98 kB / 467.4 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003835/0.2704, allocations: 5.288 MB / 472.7 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.2704, allocations: 3.938 kB / 472.7 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00178/0.2722, allocations: 1.281 MB / 474 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.956e-05/0.2723, allocations: 71.42 kB / 474 MB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.708e-05/0.2724, allocations: 19.94 kB / 474 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003623/0.2727, allocations: 20 kB / 474.1 MB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.2728, allocations: 72.47 kB / 474.1 MB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.746e-05/0.2729, allocations: 27.98 kB / 474.2 MB, free: 10.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002619/0.2732, allocations: 251.2 kB / 474.4 MB, free: 10.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2732, allocations: 0 / 474.4 MB, free: 10.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000782/0.2739, allocations: 267.6 kB / 474.7 MB, free: 10.15 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 1 (constantSource.port_p.reference.gamma) * 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 (78): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (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.002197/0.2761, allocations: 1.879 MB / 476.5 MB, free: 8.203 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001536/0.2777, allocations: 1.141 MB / 477.7 MB, free: 7.012 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2777, allocations: 0 / 477.7 MB, free: 7.012 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008645/0.2785, allocations: 0.7581 MB / 478.4 MB, free: 6.203 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005181/0.2791, allocations: 69.36 kB / 478.5 MB, free: 6.137 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007515/0.2866, allocations: 5.681 MB / 484.2 MB, free: 144 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.2869, allocations: 314.4 kB / 484.5 MB, free: 15.81 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003864/0.2873, allocations: 105.1 kB / 484.6 MB, free: 15.71 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000345/0.2876, allocations: 251.3 kB / 484.8 MB, free: 15.46 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2876, allocations: 4 kB / 484.9 MB, free: 15.46 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6516/0.9393, allocations: 13.87 MB / 498.7 MB, free: 1.828 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/13.27, allocations: 14.66 kB / 498.7 MB, free: 1.816 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/CylinderLeakage/CylinderLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.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: 15.681720134918578]