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.001313/0.001313, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00148/0.00148, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.3 MB, free: 9.039 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 59.53 kB / 306.4 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08918/0.09034, allocations: 50.55 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004233/0.09462, allocations: 2.873 MB / 359.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001932/0.09658, allocations: 1.203 MB / 361 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002097/0.09681, allocations: 8 kB / 361 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001438/0.09827, allocations: 0.576 MB / 361.6 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003546/0.09864, allocations: 111.3 kB / 361.7 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001248/0.0999, allocations: 0.6464 MB / 362.3 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000418/0.1003, allocations: 286.6 kB / 362.6 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000441/0.1008, allocations: 255.5 kB / 362.8 MB, free: 8.203 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002108/0.101, allocations: 123.5 kB / 363 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002047/0.1012, allocations: 159.4 kB / 363.1 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.508e-05/0.1013, allocations: 20 kB / 363.1 MB, free: 7.906 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000376/0.1016, allocations: 175.9 kB / 363.3 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.997e-05/0.1017, allocations: 59.7 kB / 363.4 MB, free: 7.676 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.1018, allocations: 151.3 kB / 363.5 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005582/0.1024, allocations: 490.5 kB / 364 MB, free: 7.047 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1024, allocations: 0 / 364 MB, free: 7.047 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1024, allocations: 0 / 364 MB, free: 7.047 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.1025, allocations: 3.938 kB / 364 MB, free: 7.043 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.001641/0.1041, allocations: 0.7255 MB / 364.7 MB, free: 6.266 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.1041, allocations: 12.03 kB / 364.7 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.733e-05/0.1042, allocations: 70.72 kB / 364.8 MB, free: 6.176 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008283/0.1051, allocations: 124.4 kB / 364.9 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003023/0.1054, allocations: 260.5 kB / 365.2 MB, free: 5.762 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.1054, allocations: 25.03 kB / 365.2 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.503e-05/0.1055, allocations: 36.12 kB / 365.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005297/0.106, allocations: 329.1 kB / 365.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.106, allocations: 0 / 365.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.153e-05/0.1061, allocations: 16 kB / 365.6 MB, free: 5.359 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.1061, allocations: 8 kB / 365.6 MB, free: 5.352 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004089/0.1065, allocations: 250.4 kB / 365.8 MB, free: 5.105 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001919/0.1084, allocations: 1.436 MB / 367.3 MB, free: 3.527 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006312/0.1091, allocations: 0.7046 MB / 368 MB, free: 2.707 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.1092, allocations: 100.8 kB / 368.1 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001842/0.1094, allocations: 170.2 kB / 368.2 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/0.1095, allocations: 34.56 kB / 368.3 MB, free: 2.359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.1095, allocations: 0 / 368.3 MB, free: 2.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001187/0.1107, allocations: 0.4948 MB / 368.8 MB, free: 1.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.1107, allocations: 51.41 kB / 368.8 MB, free: 1.777 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000163/0.1109, allocations: 177.1 kB / 369 MB, free: 1.586 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.1109, allocations: 33.64 kB / 369 MB, free: 1.547 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.925e-05/0.111, allocations: 176 kB / 369.2 MB, free: 1.367 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.829e-05/0.1111, allocations: 82.75 kB / 369.3 MB, free: 1.285 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.979e-05/0.1112, allocations: 53.98 kB / 369.3 MB, free: 1.227 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.1113, allocations: 326.8 kB / 369.7 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.1114, allocations: 72.53 kB / 369.7 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.1116, allocations: 133 kB / 369.9 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002813/0.1119, allocations: 212.8 kB / 370.1 MB, free: 456 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1119, allocations: 0 / 370.1 MB, free: 456 kB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005533/0.1124, allocations: 332.5 kB / 370.4 MB, free: 116 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.1125, allocations: 11.98 kB / 370.4 MB, free: 104 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.1125, allocations: 0 / 370.4 MB, free: 104 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003096/0.1128, allocations: 77.03 kB / 370.5 MB, free: 24 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1434/0.2562, allocations: 40.81 kB / 370.5 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001762/0.258, allocations: 1.837 MB / 372.3 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001593/0.2582, allocations: 30.12 kB / 372.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.056e-05/0.2582, allocations: 9.125 kB / 372.4 MB, free: 18.66 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.0001393/0.2584, allocations: 155.2 kB / 372.5 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.649e-05/0.2584, allocations: 15.75 kB / 372.6 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005578/0.259, allocations: 283.6 kB / 372.8 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.259, allocations: 3.156 kB / 372.8 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.259, allocations: 5.719 kB / 372.8 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.259, allocations: 2.953 kB / 372.8 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009242/0.26, allocations: 0.6905 MB / 373.5 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.26, allocations: 1.047 kB / 373.5 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001204/0.2601, allocations: 23 kB / 373.6 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002606/0.2604, allocations: 76.41 kB / 373.6 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.2604, allocations: 8.672 kB / 373.6 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001497/0.2619, allocations: 1.826 MB / 375.5 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.2619, allocations: 1.875 kB / 375.5 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006392/0.2626, allocations: 449.9 kB / 375.9 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.144e-05/0.2626, allocations: 116.5 kB / 376 MB, free: 16.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.663e-05/0.2627, allocations: 10.23 kB / 376 MB, free: 16.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.2628, allocations: 1.438 kB / 376 MB, free: 16.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.362e-05/0.2629, allocations: 23.5 kB / 376.1 MB, free: 16.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.495e-05/0.2629, allocations: 10.95 kB / 376.1 MB, free: 16.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.815e-05/0.263, allocations: 124.9 kB / 376.2 MB, free: 16.01 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.263, allocations: 0 / 376.2 MB, free: 16.01 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005113/0.2635, allocations: 100.1 kB / 376.3 MB, free: 15.98 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.0008967/0.2644, allocations: 1.005 MB / 377.3 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005215/0.2649, allocations: 353.2 kB / 377.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.265, allocations: 1.406 kB / 377.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002767/0.2652, allocations: 246.4 kB / 377.9 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.2656, allocations: 17.8 kB / 377.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002679/0.2683, allocations: 2.62 MB / 380.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001924/0.2685, allocations: 0.755 MB / 381.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001104/0.2686, allocations: 28.03 kB / 381.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.294e-05/0.2687, allocations: 71.89 kB / 381.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2687, allocations: 0 / 381.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01675/0.2855, allocations: 4.818 MB / 386.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001337/0.2857, allocations: 253.6 kB / 386.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.975/2.26, allocations: 0 / 386.4 MB, free: 11.32 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