Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 110.5 kB / 17.73 MB, free: 5.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 187 kB / 18.66 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.314/1.314, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 47.94 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06775/0.06889, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.1435/0.2124, allocations: 5.206 MB / 379.9 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002298/0.2147, allocations: 1.722 MB / 381.6 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002226/0.215, allocations: 17.47 kB / 381.6 MB, free: 9.137 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002365/0.2174, allocations: 1.411 MB / 383 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005828/0.218, allocations: 314.5 kB / 383.3 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001311/0.2193, allocations: 0.812 MB / 384.1 MB, free: 8.648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000712/0.22, allocations: 0.8129 MB / 384.9 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008479/0.2209, allocations: 0.7569 MB / 385.7 MB, free: 8.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003465/0.2212, allocations: 354.3 kB / 386 MB, free: 7.879 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004229/0.2217, allocations: 465.5 kB / 386.5 MB, free: 7.672 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000112/0.2218, allocations: 74.69 kB / 386.6 MB, free: 7.672 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004929/0.2223, allocations: 253.3 kB / 386.8 MB, free: 7.613 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.846e-05/0.2224, allocations: 187.3 kB / 387 MB, free: 7.488 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002715/0.2227, allocations: 426.7 kB / 387.4 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001081/0.2238, allocations: 1.181 MB / 388.6 MB, free: 6.812 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.2238, allocations: 1.094 kB / 388.6 MB, free: 6.812 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2238, allocations: 0 / 388.6 MB, free: 6.812 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.2238, allocations: 3.938 kB / 388.6 MB, free: 6.809 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003337/0.2271, allocations: 1.447 MB / 390.1 MB, free: 5.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.2272, allocations: 8.781 kB / 390.1 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001353/0.2273, allocations: 151 kB / 390.2 MB, free: 5.891 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001499/0.2288, allocations: 254.1 kB / 390.5 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.229, allocations: 259 kB / 390.7 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.884e-05/0.229, allocations: 73.66 kB / 390.8 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.2292, allocations: 102.2 kB / 390.9 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001295/0.2305, allocations: 0.948 MB / 391.8 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.04e-05/0.2305, allocations: 5.125 kB / 391.8 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.403e-05/0.2306, allocations: 40.62 kB / 391.9 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.818e-05/0.2306, allocations: 27.95 kB / 391.9 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001133/0.2317, allocations: 0.7729 MB / 392.7 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004127/0.2359, allocations: 3.36 MB / 396 MB, free: 2.633 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001568/0.2375, allocations: 1.256 MB / 397.3 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004354/0.2379, allocations: 376.4 kB / 397.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.331e-05/0.238, allocations: 101.1 kB / 397.8 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.715e-05/0.238, allocations: 47.69 kB / 397.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of pre-optimization done (n=87): time 2.435e-06/0.238, allocations: 5.031 kB / 397.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of matching and sorting (n=87): time 0.001754/0.2398, allocations: 1.298 MB / 399.1 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.624e-05/0.2398, allocations: 88.25 kB / 399.2 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003401/0.2402, allocations: 365.4 kB / 399.5 MB, free: 448 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.269e-05/0.2402, allocations: 41.73 kB / 399.6 MB, free: 404 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000135/0.2404, allocations: 375.6 kB / 400 MB, free: 96 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001928/0.2406, allocations: 302.2 kB / 400.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002417/0.2408, allocations: 174.6 kB / 400.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.2409, allocations: 366.3 kB / 400.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004068/0.2414, allocations: 267.1 kB / 401 MB, free: 15.33 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000528/0.2419, allocations: 472.8 kB / 401.5 MB, free: 15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009391/0.2428, allocations: 0.7694 MB / 402.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.2428, allocations: 1.219 kB / 402.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001467/0.2443, allocations: 0.9708 MB / 403.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.2443, allocations: 7.969 kB / 403.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.2444, allocations: 5.062 kB / 403.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003547/0.2447, allocations: 132.3 kB / 403.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007067/0.2454, allocations: 204.7 kB / 403.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003629/0.2491, allocations: 6.124 MB / 409.7 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005791/0.2497, allocations: 106.3 kB / 409.8 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.233e-05/0.2497, allocations: 42.86 kB / 409.9 MB, free: 7.754 MB / 334.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.0002802/0.25, allocations: 228.6 kB / 410.1 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.2501, allocations: 56.66 kB / 410.1 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001319/0.2515, allocations: 0.8428 MB / 411 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-06/0.2515, allocations: 12.84 kB / 411 MB, free: 7.102 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.2515, allocations: 7.875 kB / 411 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.2515, allocations: 5.641 kB / 411 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002509/0.254, allocations: 1.934 MB / 412.9 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.254, allocations: 2.031 kB / 412.9 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005203/0.2546, allocations: 134.4 kB / 413.1 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002596/0.2548, allocations: 111.3 kB / 413.2 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.251e-05/0.2549, allocations: 20.78 kB / 413.2 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00322/0.2581, allocations: 5.702 MB / 418.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.2581, allocations: 7.562 kB / 418.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001519/0.2597, allocations: 1.273 MB / 420.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001461/0.2598, allocations: 146.3 kB / 420.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.514e-05/0.2599, allocations: 23.72 kB / 420.3 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003634/0.2603, allocations: 24.03 kB / 420.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.099e-05/0.2604, allocations: 61.52 kB / 420.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.277e-05/0.2604, allocations: 35.92 kB / 420.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002371/0.2607, allocations: 249.2 kB / 420.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2607, allocations: 0 / 420.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008683/0.2615, allocations: 264.4 kB / 421 MB, free: 14.39 MB / 350.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.001874/0.2634, allocations: 1.863 MB / 422.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.2649, allocations: 1.17 MB / 424 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2649, allocations: 1.75 kB / 424 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000744/0.2656, allocations: 0.7974 MB / 424.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000521/0.2662, allocations: 58.06 kB / 424.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006628/0.2728, allocations: 5.688 MB / 430.5 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004101/0.2732, allocations: 0.9188 MB / 431.5 MB, free: 4.602 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003932/0.2736, allocations: 101.1 kB / 431.6 MB, free: 4.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002958/0.2739, allocations: 243.4 kB / 431.8 MB, free: 4.262 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2739, allocations: 0 / 431.8 MB, free: 4.262 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.159/3.433, allocations: 12.94 MB / 444.7 MB, free: 7.254 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.68/19.12, allocations: 7.844 kB / 444.8 MB, free: 7.246 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/CylinderLeakage/CylinderLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches