Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001296/0.001296, allocations: 112.7 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001432/0.001432, allocations: 216.2 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 230.5 MB / 257.4 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 63.91 kB / 377.8 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2568, allocations: 53.41 MB / 431.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.00504/0.2619, allocations: 2.88 MB / 434.1 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002579/0.2644, allocations: 1.23 MB / 435.3 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002338/0.2647, allocations: 8 kB / 435.3 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001699/0.2664, allocations: 0.6298 MB / 435.9 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004349/0.2668, allocations: 139 kB / 436.1 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.2682, allocations: 0.6639 MB / 436.7 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005215/0.2688, allocations: 294.6 kB / 437 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004751/0.2692, allocations: 236.2 kB / 437.3 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002649/0.2695, allocations: 147.4 kB / 437.4 MB, free: 480 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002641/0.2698, allocations: 159.4 kB / 437.6 MB, free: 320 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.721e-05/0.2698, allocations: 24 kB / 437.6 MB, free: 296 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003811/0.2702, allocations: 187.8 kB / 437.8 MB, free: 108 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.065e-05/0.2703, allocations: 71.7 kB / 437.8 MB, free: 36 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001681/0.2704, allocations: 147.5 kB / 438 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007352/0.2712, allocations: 0.4937 MB / 438.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.2712, allocations: 3.984 kB / 438.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2712, allocations: 0 / 438.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.685e-05/0.2712, allocations: 0 / 438.5 MB, free: 15.39 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001812/0.273, allocations: 0.6573 MB / 439.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.273, allocations: 8.031 kB / 439.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.827e-05/0.2731, allocations: 70.72 kB / 439.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007993/0.2739, allocations: 116.7 kB / 439.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004612/0.2744, allocations: 210.7 kB / 439.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.64e-05/0.2744, allocations: 21.03 kB / 439.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.441e-05/0.2745, allocations: 44.06 kB / 439.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006808/0.2752, allocations: 333.1 kB / 439.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.989e-05/0.2752, allocations: 3.984 kB / 439.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.187e-05/0.2753, allocations: 16 kB / 439.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.2753, allocations: 8 kB / 439.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005122/0.2758, allocations: 238.5 kB / 440.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00245/0.2782, allocations: 1.368 MB / 441.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005507/0.2788, allocations: 238 kB / 441.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.279, allocations: 107.4 kB / 441.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00014/0.2791, allocations: 15.98 kB / 441.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.22e-05/0.2791, allocations: 38.56 kB / 441.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.743e-06/0.2791, allocations: 0 / 441.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001337/0.2805, allocations: 418.2 kB / 442.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.2805, allocations: 51.41 kB / 442.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001862/0.2807, allocations: 175.3 kB / 442.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/0.2807, allocations: 33.7 kB / 442.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.2809, allocations: 184.3 kB / 442.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.014e-05/0.281, allocations: 87.28 kB / 442.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.062e-05/0.281, allocations: 53.98 kB / 442.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.2812, allocations: 322.8 kB / 443.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.2813, allocations: 68.53 kB / 443.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.2815, allocations: 136.7 kB / 443.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003415/0.2819, allocations: 220.9 kB / 443.6 MB, free: 9.902 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.2819, allocations: 4 kB / 443.7 MB, free: 9.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006351/0.2825, allocations: 327.8 kB / 444 MB, free: 9.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.2825, allocations: 12.03 kB / 444 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.2825, allocations: 0 / 444 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003589/0.2829, allocations: 76.81 kB / 444.1 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.2831, allocations: 43.91 kB / 444.1 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00222/0.2853, allocations: 1.934 MB / 446 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.2854, allocations: 27.78 kB / 446.1 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.2855, allocations: 15.94 kB / 446.1 MB, free: 7.34 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001802/0.2856, allocations: 141.8 kB / 446.2 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.199e-05/0.2857, allocations: 23.8 kB / 446.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006001/0.2863, allocations: 285.1 kB / 446.5 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.2863, allocations: 0 / 446.5 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.2863, allocations: 4 kB / 446.5 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2863, allocations: 0 / 446.5 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.2874, allocations: 0.6622 MB / 447.2 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.2874, allocations: 0 / 447.2 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001266/0.2875, allocations: 27.92 kB / 447.2 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002464/0.2878, allocations: 72.81 kB / 447.3 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.2878, allocations: 4 kB / 447.3 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002136/0.2899, allocations: 1.93 MB / 449.2 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2899, allocations: 0 / 449.2 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007065/0.2906, allocations: 452.3 kB / 449.7 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.656e-05/0.2907, allocations: 35.86 kB / 449.7 MB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.091e-05/0.2908, allocations: 7.984 kB / 449.7 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001198/0.2909, allocations: 4.125 kB / 449.7 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.437e-05/0.2909, allocations: 19.97 kB / 449.7 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/0.2909, allocations: 4 kB / 449.7 MB, free: 3.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001186/0.2911, allocations: 127.2 kB / 449.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2911, allocations: 0 / 449.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005077/0.2916, allocations: 103.8 kB / 450 MB, free: 3.254 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001125/0.2927, allocations: 1.002 MB / 451 MB, free: 2.223 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006403/0.2933, allocations: 339 kB / 451.3 MB, free: 1.879 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.2933, allocations: 0 / 451.3 MB, free: 1.879 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000357/0.2937, allocations: 250.1 kB / 451.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003188/0.294, allocations: 29.98 kB / 451.6 MB, free: 1.598 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003446/0.2975, allocations: 2.5 MB / 454.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004393/0.2979, allocations: 0.756 MB / 454.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.999e-05/0.298, allocations: 21.94 kB / 454.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.2981, allocations: 71.42 kB / 454.9 MB, free: 14.1 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2981, allocations: 0 / 454.9 MB, free: 14.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03892/0.337, allocations: 5.401 MB / 460.3 MB, free: 8.809 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.03, allocations: 12 kB / 460.3 MB, free: 8.797 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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: 14.305541903013363]