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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001519/0.001519, allocations: 115.9 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001808/0.001808, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 64.48 kB / 306.6 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09009/0.09128, allocations: 50.54 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003953/0.09526, allocations: 2.877 MB / 360 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001879/0.09716, allocations: 1.184 MB / 361.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002175/0.0974, allocations: 8 kB / 361.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001433/0.09886, allocations: 0.5799 MB / 361.8 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003516/0.09922, allocations: 115.3 kB / 361.9 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00119/0.1004, allocations: 0.6108 MB / 362.5 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003826/0.1008, allocations: 294.6 kB / 362.8 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004919/0.1013, allocations: 315 kB / 363.1 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002165/0.1015, allocations: 135.5 kB / 363.2 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002116/0.1018, allocations: 175.4 kB / 363.4 MB, free: 8.008 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.014e-05/0.1018, allocations: 31.94 kB / 363.4 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00033/0.1022, allocations: 175.8 kB / 363.6 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.895e-05/0.1022, allocations: 63.77 kB / 363.6 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.1023, allocations: 151.3 kB / 363.8 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005423/0.1029, allocations: 0.4945 MB / 364.3 MB, free: 7.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1029, allocations: 0 / 364.3 MB, free: 7.098 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1029, allocations: 0 / 364.3 MB, free: 7.098 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.1029, allocations: 0 / 364.3 MB, free: 7.098 MB / 302.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.001583/0.1045, allocations: 0.7255 MB / 365 MB, free: 6.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.1046, allocations: 8.031 kB / 365 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.127e-05/0.1046, allocations: 70.72 kB / 365.1 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008491/0.1055, allocations: 116.5 kB / 365.2 MB, free: 6.121 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.1058, allocations: 268.5 kB / 365.5 MB, free: 5.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.1058, allocations: 21.03 kB / 365.5 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.412e-05/0.1059, allocations: 40.12 kB / 365.5 MB, free: 5.762 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005118/0.1064, allocations: 329.1 kB / 365.8 MB, free: 5.434 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.1064, allocations: 0 / 365.8 MB, free: 5.434 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.297e-05/0.1065, allocations: 16 kB / 365.9 MB, free: 5.418 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.1065, allocations: 11.94 kB / 365.9 MB, free: 5.406 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000388/0.1069, allocations: 234.5 kB / 366.1 MB, free: 5.176 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001903/0.1088, allocations: 1.451 MB / 367.6 MB, free: 3.582 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006592/0.1095, allocations: 0.6999 MB / 368.3 MB, free: 2.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001574/0.1096, allocations: 108.8 kB / 368.4 MB, free: 2.656 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001732/0.1098, allocations: 166.2 kB / 368.5 MB, free: 2.457 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.1098, allocations: 46.55 kB / 368.6 MB, free: 2.402 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.1099, allocations: 0 / 368.6 MB, free: 2.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001198/0.1111, allocations: 496.6 kB / 369 MB, free: 1.891 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.953e-05/0.1111, allocations: 55.41 kB / 369.1 MB, free: 1.824 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.1113, allocations: 173.1 kB / 369.3 MB, free: 1.641 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.1113, allocations: 29.7 kB / 369.3 MB, free: 1.605 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.1114, allocations: 176 kB / 369.5 MB, free: 1.426 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.145e-05/0.1115, allocations: 86.73 kB / 369.6 MB, free: 1.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.614e-05/0.1116, allocations: 53.98 kB / 369.6 MB, free: 1.281 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.1117, allocations: 326.8 kB / 369.9 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.1118, allocations: 68.55 kB / 370 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001564/0.112, allocations: 140.9 kB / 370.1 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002763/0.1122, allocations: 208.9 kB / 370.3 MB, free: 0.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1123, allocations: 0 / 370.3 MB, free: 0.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005523/0.1128, allocations: 332.4 kB / 370.7 MB, free: 172 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.1128, allocations: 8.219 kB / 370.7 MB, free: 164 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.1129, allocations: 7.938 kB / 370.7 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003001/0.1132, allocations: 76.75 kB / 370.8 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001655/0.1133, allocations: 43.97 kB / 370.8 MB, free: 32 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1454/0.2587, allocations: 2.018 MB / 372.8 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001728/0.2589, allocations: 29.44 kB / 372.8 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.142e-05/0.259, allocations: 7.5 kB / 372.9 MB, free: 18.69 MB / 302.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.0001369/0.2591, allocations: 153.5 kB / 373 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.991e-05/0.2592, allocations: 18.94 kB / 373 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000555/0.2597, allocations: 288.5 kB / 373.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.2597, allocations: 2.469 kB / 373.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2597, allocations: 2.609 kB / 373.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2597, allocations: 1.484 kB / 373.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009977/0.2608, allocations: 0.6893 MB / 374 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.2608, allocations: 4.031 kB / 374 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.2609, allocations: 23.53 kB / 374 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002377/0.2611, allocations: 72.42 kB / 374.1 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.782e-05/0.2612, allocations: 6.938 kB / 374.1 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001526/0.2627, allocations: 2.036 MB / 376.1 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.2627, allocations: 0 / 376.1 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005733/0.2633, allocations: 454 kB / 376.6 MB, free: 16.06 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.984e-05/0.2634, allocations: 115.4 kB / 376.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.483e-05/0.2634, allocations: 5.062 kB / 376.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.2635, allocations: 5.125 kB / 376.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.224e-05/0.2636, allocations: 19.75 kB / 376.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.2636, allocations: 4.531 kB / 376.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.69e-05/0.2637, allocations: 126.6 kB / 376.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2637, allocations: 3.828 kB / 376.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005107/0.2642, allocations: 92.14 kB / 376.9 MB, free: 15.83 MB / 302.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.0007944/0.265, allocations: 1.011 MB / 378 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005636/0.2656, allocations: 353.5 kB / 378.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.2656, allocations: 2.875 kB / 378.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002756/0.2659, allocations: 248.2 kB / 378.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003123/0.2662, allocations: 15.66 kB / 378.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002661/0.2689, allocations: 2.632 MB / 381.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002149/0.2691, allocations: 0.7578 MB / 381.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001256/0.2692, allocations: 26.47 kB / 382 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.802e-05/0.2693, allocations: 70.88 kB / 382 MB, free: 11.93 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2693, allocations: 0 / 382 MB, free: 11.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05747/0.3268, allocations: 4.948 MB / 387 MB, free: 11.41 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001683/0.327, allocations: 256.5 kB / 387.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.952/2.279, allocations: 0 / 387.2 MB, free: 11.15 MB / 302.1 MB (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 --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) 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.0.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) Reference file matches