Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.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.001673/0.001673, allocations: 114 kB / 20.43 MB, free: 1.457 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.002127/0.002127, allocations: 214.9 kB / 23.74 MB, free: 4.672 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.586/1.586, allocations: 230.5 MB / 257.4 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2399/0.2399, allocations: 46.92 MB / 360.8 MB, free: 4.289 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003789/0.003789, allocations: 83.86 kB / 0.4962 GB, free: 7.789 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3418, allocations: 66.08 MB / 0.5607 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.00404/0.3458, allocations: 2.391 MB / 0.5631 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001295/0.3471, allocations: 0.674 MB / 0.5637 GB, free: 1.246 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.3472, allocations: 7.938 kB / 0.5637 GB, free: 1.238 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.67e-05/0.3473, allocations: 39.58 kB / 0.5638 GB, free: 1.199 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001949/0.3475, allocations: 71.33 kB / 0.5638 GB, free: 1.129 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002679/0.3478, allocations: 87.89 kB / 0.5639 GB, free: 1.043 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000362/0.3482, allocations: 347.2 kB / 0.5643 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002419/0.3484, allocations: 119.6 kB / 0.5644 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002766/0.3487, allocations: 155.5 kB / 0.5645 GB, free: 444 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002556/0.3489, allocations: 155.4 kB / 0.5647 GB, free: 288 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.966e-05/0.349, allocations: 36 kB / 0.5647 GB, free: 252 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.698e-05/0.3491, allocations: 39.98 kB / 0.5647 GB, free: 212 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.345e-05/0.3491, allocations: 63.83 kB / 0.5648 GB, free: 148 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001691/0.3493, allocations: 159.3 kB / 0.5649 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004446/0.3498, allocations: 380.2 kB / 0.5653 GB, free: 15.62 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3498, allocations: 0 / 0.5653 GB, free: 15.62 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3498, allocations: 0 / 0.5653 GB, free: 15.62 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.3498, allocations: 4 kB / 0.5653 GB, free: 15.61 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009382/0.3507, allocations: 0.5055 MB / 0.5658 GB, free: 15.08 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.3507, allocations: 12.03 kB / 0.5658 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.109e-05/0.3508, allocations: 70.72 kB / 0.5659 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002947/0.3511, allocations: 48.69 kB / 0.5659 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/0.3513, allocations: 146.2 kB / 0.5661 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.502e-05/0.3513, allocations: 25.03 kB / 0.5661 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.139e-05/0.3514, allocations: 28.38 kB / 0.5661 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005081/0.3519, allocations: 282.1 kB / 0.5664 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.3519, allocations: 0 / 0.5664 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.319e-05/0.3519, allocations: 15.98 kB / 0.5664 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.3519, allocations: 12 kB / 0.5664 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000414/0.3524, allocations: 214.5 kB / 0.5666 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001772/0.3541, allocations: 0.9899 MB / 0.5676 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.554e-05/0.3542, allocations: 30.58 kB / 0.5676 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.259e-05/0.3543, allocations: 20.92 kB / 0.5676 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.146e-05/0.3543, allocations: 4 kB / 0.5676 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.005e-05/0.3543, allocations: 34.56 kB / 0.5677 GB, free: 13.05 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.663e-06/0.3543, allocations: 0 / 0.5677 GB, free: 13.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002173/0.3545, allocations: 81.47 kB / 0.5678 GB, free: 12.96 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.122e-05/0.3546, allocations: 51.41 kB / 0.5678 GB, free: 12.9 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004119/0.355, allocations: 320.1 kB / 0.5681 GB, free: 12.58 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.355, allocations: 25.7 kB / 0.5681 GB, free: 12.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.3552, allocations: 239.4 kB / 0.5684 GB, free: 12.31 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.585e-05/0.3552, allocations: 15.89 kB / 0.5684 GB, free: 12.3 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.415e-05/0.3553, allocations: 53.66 kB / 0.5684 GB, free: 12.24 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.3554, allocations: 334.9 kB / 0.5687 GB, free: 11.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.3556, allocations: 63.97 kB / 0.5688 GB, free: 11.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/0.3557, allocations: 89.69 kB / 0.5689 GB, free: 11.75 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002184/0.3559, allocations: 125.6 kB / 0.569 GB, free: 11.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3559, allocations: 0 / 0.569 GB, free: 11.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004145/0.3564, allocations: 241.9 kB / 0.5692 GB, free: 11.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.3564, allocations: 10.28 kB / 0.5693 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/0.3564, allocations: 4.031 kB / 0.5693 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.3564, allocations: 4 kB / 0.5693 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002982/0.3567, allocations: 55.89 kB / 0.5693 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.3567, allocations: 0 / 0.5693 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000259/0.357, allocations: 35.73 kB / 0.5694 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.357, allocations: 4 kB / 0.5694 GB, free: 11.27 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001391/0.3571, allocations: 137.8 kB / 0.5695 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.779e-05/0.3572, allocations: 27.73 kB / 0.5695 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.308e-05/0.3572, allocations: 28.98 kB / 0.5695 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.3572, allocations: 0 / 0.5695 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.3572, allocations: 4 kB / 0.5695 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.3572, allocations: 0 / 0.5695 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006736/0.3579, allocations: 498.3 kB / 0.57 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3579, allocations: 0 / 0.57 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.285e-05/0.3579, allocations: 4 kB / 0.57 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3579, allocations: 0 / 0.57 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-06/0.3579, allocations: 4.062 kB / 0.57 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.358, allocations: 4 kB / 0.57 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.358, allocations: 0 / 0.57 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001383/0.3581, allocations: 101.8 kB / 0.5701 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.764e-05/0.3581, allocations: 27.84 kB / 0.5702 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.215e-05/0.3582, allocations: 0 / 0.5702 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.3583, allocations: 4.031 kB / 0.5702 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.53e-05/0.3583, allocations: 4 kB / 0.5702 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-06/0.3583, allocations: 0 / 0.5702 GB, free: 10.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002705/0.3586, allocations: 227.1 kB / 0.5704 GB, free: 10.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3586, allocations: 0 / 0.5704 GB, free: 10.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002816/0.3589, allocations: 63.89 kB / 0.5704 GB, free: 10.06 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004655/0.3593, allocations: 0.6326 MB / 0.5711 GB, free: 9.395 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002582/0.3596, allocations: 99.91 kB / 0.5712 GB, free: 9.297 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3596, allocations: 0 / 0.5712 GB, free: 9.297 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.242e-05/0.3596, allocations: 8 kB / 0.5712 GB, free: 9.289 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000309/0.3599, allocations: 29.12 kB / 0.5712 GB, free: 9.258 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002952/0.3629, allocations: 2.235 MB / 0.5734 GB, free: 6.922 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003885/0.3633, allocations: 0.7401 MB / 0.5741 GB, free: 6.156 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001179/0.3634, allocations: 29.92 kB / 0.5741 GB, free: 6.129 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.3635, allocations: 71.41 kB / 0.5742 GB, free: 6.059 MB / 414.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3635, allocations: 0 / 0.5742 GB, free: 6.059 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03057/0.3941, allocations: 4.433 MB / 0.5785 GB, free: 1.734 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.66, allocations: 8.25 kB / 0.5785 GB, free: 1.73 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Leakage/Leakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.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: 14.693873801967129]