Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.004872/0.004872, allocations: 114 kB / 21.97 MB, free: 5.23 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.001423/0.001423, allocations: 207.6 kB / 25.27 MB, free: 3.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.407/1.407, allocations: 207.6 MB / 236 MB, free: 9.992 MB / 190.1 MB " [Timeout remaining time 178] 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.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.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 59.91 kB / 348 MB, free: 10.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3051, allocations: 49.16 MB / 397.1 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003907/0.309, allocations: 2.742 MB / 399.9 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001873/0.3109, allocations: 1.202 MB / 401.1 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.311, allocations: 10.41 kB / 401.1 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001422/0.3124, allocations: 0.6261 MB / 401.7 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002784/0.3127, allocations: 126 kB / 401.8 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001155/0.3139, allocations: 0.6684 MB / 402.5 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000397/0.3143, allocations: 289.9 kB / 402.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004398/0.3147, allocations: 251.3 kB / 403 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.3149, allocations: 126.2 kB / 403.2 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002357/0.3151, allocations: 165 kB / 403.3 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.397e-05/0.3152, allocations: 24.72 kB / 403.3 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003591/0.3155, allocations: 184.7 kB / 403.5 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.034e-05/0.3156, allocations: 65.44 kB / 403.6 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001389/0.3157, allocations: 141.5 kB / 403.7 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006402/0.3164, allocations: 0.4947 MB / 404.2 MB, free: 4.539 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3164, allocations: 1.125 kB / 404.2 MB, free: 4.539 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3164, allocations: 0 / 404.2 MB, free: 4.539 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.3164, allocations: 0 / 404.2 MB, free: 4.539 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001492/0.3179, allocations: 0.6581 MB / 404.9 MB, free: 4.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.3179, allocations: 11.92 kB / 404.9 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.627e-05/0.3179, allocations: 13.88 kB / 404.9 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.427e-05/0.318, allocations: 65.3 kB / 405 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007402/0.3187, allocations: 121.8 kB / 405.1 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003098/0.319, allocations: 200.2 kB / 405.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.3191, allocations: 30.84 kB / 405.3 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.079e-05/0.3191, allocations: 36.19 kB / 405.4 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005237/0.3196, allocations: 327.8 kB / 405.7 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.3197, allocations: 5.5 kB / 405.7 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.814e-05/0.3197, allocations: 15.38 kB / 405.7 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.3197, allocations: 7.938 kB / 405.7 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003829/0.3201, allocations: 237 kB / 405.9 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001708/0.3218, allocations: 1.38 MB / 407.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00047/0.3223, allocations: 232.6 kB / 407.5 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000147/0.3224, allocations: 94.12 kB / 407.6 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.42e-05/0.3225, allocations: 10.92 kB / 407.6 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.3225, allocations: 37.48 kB / 407.7 MB, free: 2.254 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.3225, allocations: 0 / 407.7 MB, free: 2.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001182/0.3237, allocations: 413.3 kB / 408.1 MB, free: 2.094 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.495e-05/0.3237, allocations: 54.11 kB / 408.1 MB, free: 2.031 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.3239, allocations: 177.2 kB / 408.3 MB, free: 1.898 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.3239, allocations: 35.81 kB / 408.3 MB, free: 1.859 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.034e-05/0.324, allocations: 179.1 kB / 408.5 MB, free: 1.707 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.157e-05/0.324, allocations: 91.53 kB / 408.6 MB, free: 1.633 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.598e-05/0.3241, allocations: 50.44 kB / 408.7 MB, free: 1.602 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.848e-05/0.3241, allocations: 326.7 kB / 409 MB, free: 1.281 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.3243, allocations: 67.33 kB / 409 MB, free: 1.258 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001424/0.3244, allocations: 138.6 kB / 409.2 MB, free: 1.152 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/0.3246, allocations: 212.9 kB / 409.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3246, allocations: 5.312 kB / 409.4 MB, free: 1.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005257/0.3252, allocations: 329.2 kB / 409.7 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.3252, allocations: 5.5 kB / 409.7 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.3252, allocations: 1.375 kB / 409.7 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003102/0.3255, allocations: 76.3 kB / 409.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.3257, allocations: 45.39 kB / 409.8 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001947/0.3276, allocations: 1.935 MB / 411.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.3277, allocations: 34.75 kB / 411.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/0.3278, allocations: 7.938 kB / 411.8 MB, free: 15.09 MB / 334.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.0001649/0.3279, allocations: 149.3 kB / 412 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.577e-05/0.328, allocations: 19.44 kB / 412 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005621/0.3285, allocations: 279.4 kB / 412.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3285, allocations: 2.219 kB / 412.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.3285, allocations: 2.25 kB / 412.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.3285, allocations: 1.406 kB / 412.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.3296, allocations: 0.6569 MB / 412.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3296, allocations: 0 / 412.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001147/0.3297, allocations: 27.14 kB / 412.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002282/0.3299, allocations: 72.02 kB / 413 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.3299, allocations: 5.938 kB / 413 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002009/0.332, allocations: 1.928 MB / 414.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.332, allocations: 0 / 414.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006859/0.3326, allocations: 458.9 kB / 415.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.178e-05/0.3327, allocations: 29.5 kB / 415.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.846e-05/0.3327, allocations: 10.03 kB / 415.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.3329, allocations: 9.094 kB / 415.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.704e-05/0.3329, allocations: 17.02 kB / 415.5 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/0.3329, allocations: 9.609 kB / 415.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001265/0.3331, allocations: 125.2 kB / 415.6 MB, free: 12.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3331, allocations: 0 / 415.6 MB, free: 12.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005291/0.3336, allocations: 103.1 kB / 415.7 MB, free: 12.18 MB / 334.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.001209/0.3348, allocations: 0.9887 MB / 416.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006875/0.3355, allocations: 340.8 kB / 417 MB, free: 11.17 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3355, allocations: 0 / 417 MB, free: 11.17 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003861/0.3359, allocations: 243.3 kB / 417.2 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.3362, allocations: 13.72 kB / 417.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003731/0.3399, allocations: 2.519 MB / 419.8 MB, free: 8.965 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005981/0.3405, allocations: 0.7603 MB / 420.5 MB, free: 8.23 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.399e-05/0.3406, allocations: 19.83 kB / 420.6 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.3407, allocations: 68.11 kB / 420.6 MB, free: 8.168 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3407, allocations: 0 / 420.6 MB, free: 8.168 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0318/0.3725, allocations: 5.283 MB / 425.9 MB, free: 5.277 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.46, allocations: 10.41 kB / 425.9 MB, free: 5.27 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_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/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 13.84722314105602]