Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 215.9 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.56/1.56, allocations: 230.6 MB / 257.5 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2468/0.2468, allocations: 46.95 MB / 360.9 MB, free: 4.027 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002148/0.002148, allocations: 63.91 kB / 0.4961 GB, free: 7.738 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3417, allocations: 66.05 MB / 0.5606 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004266/0.3459, allocations: 2.497 MB / 0.563 GB, free: 1.734 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.3477, allocations: 0.7594 MB / 0.5638 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001781/0.3479, allocations: 4 kB / 0.5638 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002826/0.3482, allocations: 75.31 kB / 0.5638 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002862/0.3484, allocations: 107.2 kB / 0.564 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003058/0.3487, allocations: 111.9 kB / 0.5641 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005058/0.3493, allocations: 422.2 kB / 0.5645 GB, free: 268 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002398/0.3495, allocations: 99.78 kB / 0.5646 GB, free: 164 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000226/0.3497, allocations: 147.5 kB / 0.5647 GB, free: 16 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002698/0.35, allocations: 151.3 kB / 0.5648 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.256e-05/0.3501, allocations: 32 kB / 0.5649 GB, free: 15.83 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.398e-05/0.3501, allocations: 32 kB / 0.5649 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.547e-05/0.3502, allocations: 79.7 kB / 0.565 GB, free: 15.72 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001816/0.3504, allocations: 151.2 kB / 0.5651 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005742/0.351, allocations: 436.1 kB / 0.5655 GB, free: 15.15 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.351, allocations: 4 kB / 0.5655 GB, free: 15.14 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.955e-06/0.351, allocations: 3.938 kB / 0.5655 GB, free: 15.14 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.351, allocations: 0 / 0.5655 GB, free: 15.14 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001155/0.3521, allocations: 0.6027 MB / 0.5661 GB, free: 14.51 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.3522, allocations: 12.03 kB / 0.5661 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.875e-05/0.3523, allocations: 74.72 kB / 0.5662 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.383e-05/0.3523, allocations: 40.7 kB / 0.5663 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004621/0.3528, allocations: 232.8 kB / 0.5665 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.292e-05/0.3528, allocations: 21.38 kB / 0.5665 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.135e-05/0.3529, allocations: 32.38 kB / 0.5665 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000737/0.3536, allocations: 362 kB / 0.5669 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.029e-05/0.3537, allocations: 0 / 0.5669 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.378e-05/0.3537, allocations: 20 kB / 0.5669 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.3537, allocations: 8 kB / 0.5669 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006835/0.3544, allocations: 259.8 kB / 0.5671 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002329/0.3567, allocations: 1.23 MB / 0.5684 GB, free: 12.1 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005267/0.3573, allocations: 190.5 kB / 0.5685 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002217/0.3575, allocations: 75.56 kB / 0.5686 GB, free: 11.79 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.567e-05/0.3575, allocations: 8 kB / 0.5686 GB, free: 11.79 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.166e-05/0.3576, allocations: 38.55 kB / 0.5686 GB, free: 11.74 MB / 414.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.3576, allocations: 4 kB / 0.5687 GB, free: 11.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009179/0.3585, allocations: 249.2 kB / 0.5689 GB, free: 11.48 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/0.3586, allocations: 132.5 kB / 0.569 GB, free: 11.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004233/0.359, allocations: 345.6 kB / 0.5693 GB, free: 10.98 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.21e-05/0.3591, allocations: 25.83 kB / 0.5694 GB, free: 10.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002203/0.3593, allocations: 260.1 kB / 0.5696 GB, free: 10.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.853e-05/0.3593, allocations: 47.59 kB / 0.5697 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.3594, allocations: 57.94 kB / 0.5697 GB, free: 10.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.3596, allocations: 350.7 kB / 0.5701 GB, free: 10.22 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002344/0.3598, allocations: 76.52 kB / 0.5701 GB, free: 10.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002941/0.3601, allocations: 168.2 kB / 0.5703 GB, free: 9.941 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005301/0.3607, allocations: 250.9 kB / 0.5705 GB, free: 9.656 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3607, allocations: 4 kB / 0.5705 GB, free: 9.652 MB / 414.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006922/0.3614, allocations: 309.8 kB / 0.5708 GB, free: 9.344 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.3614, allocations: 4 kB / 0.5708 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.3614, allocations: 4 kB / 0.5708 GB, free: 9.336 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.04e-05/0.3614, allocations: 4.297 kB / 0.5708 GB, free: 9.332 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004286/0.3619, allocations: 99.91 kB / 0.5709 GB, free: 9.234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.168e-05/0.3619, allocations: 11.94 kB / 0.5709 GB, free: 9.223 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002947/0.3622, allocations: 51.66 kB / 0.571 GB, free: 9.172 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.241e-05/0.3622, allocations: 8 kB / 0.571 GB, free: 9.164 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * 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.0001781/0.3624, allocations: 153.7 kB / 0.5711 GB, free: 9.004 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.3625, allocations: 39.75 kB / 0.5712 GB, free: 8.965 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8e-05/0.3626, allocations: 38.5 kB / 0.5712 GB, free: 8.926 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.3626, allocations: 4 kB / 0.5712 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.3626, allocations: 0 / 0.5712 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3626, allocations: 0 / 0.5712 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000999/0.3636, allocations: 0.5399 MB / 0.5718 GB, free: 8.316 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.3636, allocations: 4 kB / 0.5718 GB, free: 8.312 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002863/0.3639, allocations: 56.05 kB / 0.5718 GB, free: 8.258 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.3639, allocations: 4 kB / 0.5718 GB, free: 8.254 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/0.3639, allocations: 15.92 kB / 0.5718 GB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.3639, allocations: 0 / 0.5718 GB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3639, allocations: 4 kB / 0.5718 GB, free: 8.234 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006277/0.3645, allocations: 388.6 kB / 0.5722 GB, free: 7.824 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.509e-05/0.3646, allocations: 43.69 kB / 0.5722 GB, free: 7.781 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.667e-05/0.3646, allocations: 7.938 kB / 0.5723 GB, free: 7.773 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002224/0.3649, allocations: 15.98 kB / 0.5723 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.709e-05/0.3649, allocations: 15.97 kB / 0.5723 GB, free: 7.742 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.3649, allocations: 8 kB / 0.5723 GB, free: 7.734 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002954/0.3652, allocations: 235.2 kB / 0.5725 GB, free: 7.504 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3652, allocations: 0 / 0.5725 GB, free: 7.504 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000406/0.3656, allocations: 67.89 kB / 0.5726 GB, free: 7.438 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (15): * Single equations (assignments): 15 * 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.0009144/0.3666, allocations: 0.9381 MB / 0.5735 GB, free: 6.453 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005444/0.3671, allocations: 191.9 kB / 0.5737 GB, free: 6.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3671, allocations: 4.125 kB / 0.5737 GB, free: 6.266 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002273/0.3673, allocations: 75.89 kB / 0.5738 GB, free: 6.191 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004228/0.3678, allocations: 23.36 kB / 0.5738 GB, free: 6.172 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004318/0.3721, allocations: 3.008 MB / 0.5767 GB, free: 2.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002066/0.3723, allocations: 168.8 kB / 0.5769 GB, free: 2.797 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001132/0.3724, allocations: 22.11 kB / 0.5769 GB, free: 2.777 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001864/0.3726, allocations: 111.4 kB / 0.577 GB, free: 2.668 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3726, allocations: 4 kB / 0.577 GB, free: 2.664 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03474/0.4073, allocations: 5.523 MB / 0.5824 GB, free: 13.27 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.75, allocations: 17.84 kB / 0.5824 GB, free: 13.26 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.Sources.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.846258761826903]