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.001307/0.001307, allocations: 88.33 kB / 20.67 MB, free: 3.875 MB / 18.57 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.001437/0.001437, allocations: 160.9 kB / 23.95 MB, free: 0.5977 MB / 18.57 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 0.8995/0.8995, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] 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 2.064e-06/2.064e-06, allocations: 0 / 324.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.459e-05/2.665e-05, allocations: 2.281 kB / 324.5 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003976/0.004003, allocations: 2.669 MB / 327.2 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001812/0.005814, allocations: 1.133 MB / 328.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.005957, allocations: 8 kB / 328.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001072/0.007029, allocations: 0.6065 MB / 328.9 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003179/0.007347, allocations: 146.8 kB / 329.1 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.008355, allocations: 0.6069 MB / 329.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004153/0.00877, allocations: 306.4 kB / 330 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004507/0.009221, allocations: 243 kB / 330.2 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002708/0.009492, allocations: 191.6 kB / 330.4 MB, free: 9.871 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001813/0.009673, allocations: 131.7 kB / 330.5 MB, free: 9.742 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.878e-05/0.009712, allocations: 24 kB / 330.6 MB, free: 9.719 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003647/0.01008, allocations: 175.7 kB / 330.7 MB, free: 9.547 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.491e-05/0.01012, allocations: 63.75 kB / 330.8 MB, free: 9.484 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.029e-05/0.01021, allocations: 107.7 kB / 330.9 MB, free: 9.379 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006024/0.01081, allocations: 0.514 MB / 331.4 MB, free: 8.863 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.01082, allocations: 3.984 kB / 331.4 MB, free: 8.859 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.01082, allocations: 0 / 331.4 MB, free: 8.859 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.01083, allocations: 0 / 331.4 MB, free: 8.859 MB / 298.7 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.00143/0.01226, allocations: 0.6495 MB / 332.1 MB, free: 8.176 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.01231, allocations: 16.03 kB / 332.1 MB, free: 8.16 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.281e-05/0.01238, allocations: 66.72 kB / 332.2 MB, free: 8.086 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005063/0.01289, allocations: 116.7 kB / 332.3 MB, free: 7.973 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003791/0.01327, allocations: 216.9 kB / 332.5 MB, free: 7.738 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.769e-05/0.01329, allocations: 25.03 kB / 332.5 MB, free: 7.715 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.228e-05/0.01333, allocations: 32.38 kB / 332.5 MB, free: 7.684 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003696/0.0137, allocations: 337.6 kB / 332.9 MB, free: 7.344 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.01371, allocations: 7.938 kB / 332.9 MB, free: 7.336 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.01374, allocations: 15.98 kB / 332.9 MB, free: 7.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.01375, allocations: 12 kB / 332.9 MB, free: 7.309 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002671/0.01401, allocations: 238.5 kB / 333.1 MB, free: 7.074 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001222/0.01524, allocations: 1.079 MB / 334.2 MB, free: 5.922 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003324/0.01557, allocations: 233.9 kB / 334.4 MB, free: 5.688 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.01567, allocations: 105.1 kB / 334.5 MB, free: 5.582 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001072/0.01578, allocations: 11.98 kB / 334.6 MB, free: 5.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.0158, allocations: 42.42 kB / 334.6 MB, free: 5.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.312e-06/0.01581, allocations: 0 / 334.6 MB, free: 5.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007262/0.01653, allocations: 423.2 kB / 335 MB, free: 5.098 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.145e-05/0.01656, allocations: 55.41 kB / 335.1 MB, free: 5.031 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.01668, allocations: 167.3 kB / 335.2 MB, free: 4.852 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.512e-05/0.01669, allocations: 33.7 kB / 335.3 MB, free: 4.812 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.646e-05/0.01677, allocations: 188.3 kB / 335.4 MB, free: 4.625 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.412e-05/0.01681, allocations: 87.25 kB / 335.5 MB, free: 4.539 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.58e-05/0.01687, allocations: 53.94 kB / 335.6 MB, free: 4.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.788e-05/0.01696, allocations: 326.8 kB / 335.9 MB, free: 4.152 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.676e-05/0.01704, allocations: 68.53 kB / 336 MB, free: 4.086 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/0.01714, allocations: 133.2 kB / 336.1 MB, free: 3.934 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002066/0.01735, allocations: 225.1 kB / 336.3 MB, free: 3.691 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.01735, allocations: 0 / 336.3 MB, free: 3.691 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003623/0.01771, allocations: 327.6 kB / 336.6 MB, free: 3.363 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.01773, allocations: 11.34 kB / 336.6 MB, free: 3.355 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.01774, allocations: 4 kB / 336.6 MB, free: 3.352 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002171/0.01795, allocations: 76.73 kB / 336.7 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.785e-05/0.01804, allocations: 43.92 kB / 336.8 MB, free: 3.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001268/0.01931, allocations: 1.907 MB / 338.7 MB, free: 1.203 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.981e-05/0.01938, allocations: 31.78 kB / 338.7 MB, free: 1.172 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.01939, allocations: 11.98 kB / 338.7 MB, free: 1.16 MB / 298.7 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 9.618e-05/0.01949, allocations: 145.8 kB / 338.9 MB, free: 1.008 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.421e-05/0.01951, allocations: 15.91 kB / 338.9 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003307/0.01984, allocations: 284.2 kB / 339.2 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.01984, allocations: 4 kB / 339.2 MB, free: 0.707 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.01985, allocations: 0 / 339.2 MB, free: 0.707 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.01985, allocations: 7.922 kB / 339.2 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006053/0.02046, allocations: 0.631 MB / 339.8 MB, free: 12 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.02046, allocations: 4 kB / 339.8 MB, free: 8 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.154e-05/0.02053, allocations: 28.27 kB / 339.8 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001251/0.02065, allocations: 76.73 kB / 339.9 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.02066, allocations: 4 kB / 339.9 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001082/0.02175, allocations: 1.907 MB / 341.8 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.02175, allocations: 7.938 kB / 341.8 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000373/0.02212, allocations: 444.5 kB / 342.3 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.178e-05/0.02216, allocations: 31.86 kB / 342.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.334e-05/0.02218, allocations: 7.984 kB / 342.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.743e-05/0.02223, allocations: 4 kB / 342.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.677e-05/0.02226, allocations: 20.09 kB / 342.3 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.285e-06/0.02227, allocations: 8 kB / 342.3 MB, free: 13.35 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.322e-05/0.02233, allocations: 131.5 kB / 342.5 MB, free: 13.22 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02233, allocations: 0 / 342.5 MB, free: 13.22 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003128/0.02264, allocations: 99.77 kB / 342.5 MB, free: 13.12 MB / 314.7 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.0006579/0.0233, allocations: 0.9985 MB / 343.5 MB, free: 12.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00039/0.02369, allocations: 338.5 kB / 343.9 MB, free: 11.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.02369, allocations: 0 / 343.9 MB, free: 11.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001753/0.02387, allocations: 246.8 kB / 344.1 MB, free: 11.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002277/0.0241, allocations: 39.86 kB / 344.2 MB, free: 11.46 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00221/0.02631, allocations: 2.462 MB / 346.6 MB, free: 8.855 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001134/0.02642, allocations: 142.5 kB / 346.8 MB, free: 8.695 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.381e-05/0.02648, allocations: 29.88 kB / 346.8 MB, free: 8.668 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.594e-05/0.02656, allocations: 72.48 kB / 346.9 MB, free: 8.598 MB / 314.7 MB Notification: Performance of SimCode: time 4.71e-07/0.02656, allocations: 0 / 346.9 MB, free: 8.598 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01989/0.04645, allocations: 5.911 MB / 352.8 MB, free: 2.816 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.231/7.278, allocations: 8.047 kB / 352.8 MB, free: 2.809 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins/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: 8.945687338709831]