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.00129/0.00129, allocations: 117 kB / 18.49 MB, free: 4.59 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.001404/0.001404, allocations: 212.7 kB / 21.45 MB, free: 1.637 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.439/1.439, allocations: 230.4 MB / 254.7 MB, free: 14.86 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 59.89 kB / 373.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09744/0.09939, allocations: 53.37 MB / 427.1 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004137/0.1035, allocations: 2.865 MB / 429.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001945/0.1055, allocations: 1.23 MB / 431.1 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.1056, allocations: 8 kB / 431.2 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1957/0.3013, allocations: 0.614 MB / 431.8 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005438/0.3019, allocations: 140.6 kB / 431.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001131/0.303, allocations: 0.6487 MB / 432.6 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003708/0.3034, allocations: 300.1 kB / 432.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003595/0.3037, allocations: 211.5 kB / 433.1 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001839/0.3039, allocations: 135.7 kB / 433.2 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001918/0.3041, allocations: 169.5 kB / 433.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.095e-05/0.3041, allocations: 24.03 kB / 433.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003198/0.3045, allocations: 188.1 kB / 433.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.431e-05/0.3045, allocations: 61.62 kB / 433.6 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.3046, allocations: 147.6 kB / 433.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005149/0.3051, allocations: 0.5028 MB / 434.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3051, allocations: 0 / 434.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3051, allocations: 0 / 434.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.3051, allocations: 1.156 kB / 434.3 MB, free: 7.297 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.001499/0.3066, allocations: 0.7282 MB / 435 MB, free: 6.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.3067, allocations: 10.16 kB / 435 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.832e-05/0.3067, allocations: 12.69 kB / 435 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.43e-05/0.3068, allocations: 72.92 kB / 435.1 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007939/0.3076, allocations: 117.4 kB / 435.2 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003481/0.3079, allocations: 266.1 kB / 435.5 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.3079, allocations: 21.31 kB / 435.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.193e-05/0.308, allocations: 38 kB / 435.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004732/0.3084, allocations: 336.3 kB / 435.9 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.3085, allocations: 2.094 kB / 435.9 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.78e-05/0.3085, allocations: 11.19 kB / 435.9 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.3085, allocations: 8.125 kB / 435.9 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003971/0.3089, allocations: 246 kB / 436.1 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001722/0.3106, allocations: 1.442 MB / 437.6 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005245/0.3111, allocations: 0.6822 MB / 438.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001349/0.3113, allocations: 93.38 kB / 438.3 MB, free: 5.082 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001305/0.3114, allocations: 175.5 kB / 438.5 MB, free: 4.891 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.346e-05/0.3114, allocations: 33.59 kB / 438.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.272e-06/0.3114, allocations: 0 / 438.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001226/0.3127, allocations: 0.4933 MB / 439 MB, free: 4.637 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.203e-05/0.3127, allocations: 53.94 kB / 439.1 MB, free: 4.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001532/0.3128, allocations: 173 kB / 439.2 MB, free: 4.441 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.3128, allocations: 26.45 kB / 439.3 MB, free: 4.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.319e-05/0.3129, allocations: 182.6 kB / 439.5 MB, free: 4.254 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.279e-05/0.313, allocations: 89.69 kB / 439.5 MB, free: 4.184 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.91e-05/0.3131, allocations: 53.62 kB / 439.6 MB, free: 4.148 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.61e-05/0.3131, allocations: 328.7 kB / 439.9 MB, free: 3.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.3132, allocations: 70.36 kB / 440 MB, free: 3.801 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.3134, allocations: 132 kB / 440.1 MB, free: 3.703 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002639/0.3136, allocations: 218.8 kB / 440.3 MB, free: 3.562 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.3136, allocations: 1.188 kB / 440.3 MB, free: 3.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005541/0.3142, allocations: 328.6 kB / 440.6 MB, free: 3.418 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.3142, allocations: 8.422 kB / 440.7 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.3142, allocations: 6.219 kB / 440.7 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000333/0.3146, allocations: 82.52 kB / 440.7 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.3147, allocations: 40.19 kB / 440.8 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001644/0.3164, allocations: 2.031 MB / 442.8 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.3165, allocations: 31.92 kB / 442.8 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.016e-05/0.3165, allocations: 11.78 kB / 442.9 MB, free: 1.566 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.0001073/0.3166, allocations: 143.4 kB / 443 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.396e-05/0.3167, allocations: 24.97 kB / 443 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005215/0.3172, allocations: 280.9 kB / 443.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.3172, allocations: 2.875 kB / 443.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3172, allocations: 1.375 kB / 443.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.3172, allocations: 6.125 kB / 443.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000871/0.3181, allocations: 0.6881 MB / 444 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.3181, allocations: 4 kB / 444 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.3182, allocations: 26.3 kB / 444 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002268/0.3184, allocations: 76.59 kB / 444.1 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.3184, allocations: 6.75 kB / 444.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001921/0.3204, allocations: 2.027 MB / 446.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.3204, allocations: 1.234 kB / 446.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007572/0.3211, allocations: 450.7 kB / 446.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.3212, allocations: 114.6 kB / 446.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.206e-05/0.3212, allocations: 2.938 kB / 446.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.3214, allocations: 5.281 kB / 446.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.242e-05/0.3214, allocations: 27.11 kB / 446.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.3214, allocations: 9.344 kB / 446.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001194/0.3215, allocations: 125.5 kB / 446.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3215, allocations: 1.219 kB / 446.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005004/0.322, allocations: 100 kB / 446.9 MB, free: 14.43 MB / 366.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.001097/0.3231, allocations: 0.9934 MB / 447.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006495/0.3238, allocations: 342.7 kB / 448.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3238, allocations: 0 / 448.3 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003638/0.3241, allocations: 246 kB / 448.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003336/0.3245, allocations: 16.64 kB / 448.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003461/0.3279, allocations: 2.519 MB / 451.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004597/0.3284, allocations: 0.7511 MB / 451.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.086e-05/0.3285, allocations: 26.14 kB / 451.8 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.3286, allocations: 77.08 kB / 451.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3286, allocations: 0 / 451.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02917/0.3578, allocations: 5.239 MB / 457.1 MB, free: 9.906 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.27/10.63, allocations: 9.938 kB / 457.2 MB, free: 9.902 MB / 366.1 MB " [Timeout remaining time 649] (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: 13.078409213980194]