Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001686/0.001686, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.002136/0.002136, allocations: 212.9 kB / 24.52 MB, free: 3.941 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.477/1.477, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2314/0.2314, allocations: 44.92 MB / 359.6 MB, free: 6.09 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002024/0.002024, allocations: 67.83 kB / 0.4938 GB, free: 10.58 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3223, allocations: 65.47 MB / 0.5577 GB, free: 7.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.00433/0.3266, allocations: 2.515 MB / 0.5602 GB, free: 5.031 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001519/0.3281, allocations: 0.7478 MB / 0.5609 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001678/0.3283, allocations: 4 kB / 0.5609 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002557/0.3286, allocations: 67.39 kB / 0.561 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002672/0.3288, allocations: 111.1 kB / 0.5611 GB, free: 4.098 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003026/0.3291, allocations: 119.8 kB / 0.5612 GB, free: 3.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004707/0.3296, allocations: 418.3 kB / 0.5616 GB, free: 3.57 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002336/0.3298, allocations: 103.8 kB / 0.5617 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002149/0.3301, allocations: 151.4 kB / 0.5618 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002255/0.3303, allocations: 175.1 kB / 0.562 GB, free: 3.145 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.477e-05/0.3303, allocations: 32 kB / 0.562 GB, free: 3.113 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.295e-05/0.3304, allocations: 32 kB / 0.5621 GB, free: 3.082 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.63e-05/0.3305, allocations: 75.75 kB / 0.5621 GB, free: 3.008 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.3307, allocations: 155.2 kB / 0.5623 GB, free: 2.855 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005004/0.3312, allocations: 432.3 kB / 0.5627 GB, free: 2.434 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3312, allocations: 0 / 0.5627 GB, free: 2.434 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.582e-06/0.3312, allocations: 4 kB / 0.5627 GB, free: 2.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.308e-06/0.3312, allocations: 0 / 0.5627 GB, free: 2.43 MB / 398.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.001133/0.3323, allocations: 0.6027 MB / 0.5633 GB, free: 1.797 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.3324, allocations: 12.03 kB / 0.5633 GB, free: 1.785 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.664e-05/0.3324, allocations: 9.188 kB / 0.5633 GB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.49e-05/0.3325, allocations: 70.72 kB / 0.5634 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.723e-05/0.3325, allocations: 44.7 kB / 0.5634 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003774/0.3329, allocations: 228.9 kB / 0.5636 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.3329, allocations: 21.38 kB / 0.5637 GB, free: 1.379 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.065e-05/0.333, allocations: 36.31 kB / 0.5637 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007214/0.3337, allocations: 361.8 kB / 0.564 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.3337, allocations: 4 kB / 0.564 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.882e-05/0.3338, allocations: 19.98 kB / 0.5641 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.3338, allocations: 8 kB / 0.5641 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006558/0.3344, allocations: 265.5 kB / 0.5643 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002155/0.3366, allocations: 1.234 MB / 0.5655 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005163/0.3371, allocations: 190.5 kB / 0.5657 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002187/0.3373, allocations: 75.45 kB / 0.5658 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.406e-05/0.3373, allocations: 8 kB / 0.5658 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.3374, allocations: 38.56 kB / 0.5658 GB, free: 15 MB / 414.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.3374, allocations: 0 / 0.5658 GB, free: 15 MB / 414.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008105/0.3382, allocations: 249.4 kB / 0.5661 GB, free: 14.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.864e-05/0.3383, allocations: 136.5 kB / 0.5662 GB, free: 14.58 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003695/0.3387, allocations: 341.8 kB / 0.5665 GB, free: 14.24 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.3387, allocations: 29.7 kB / 0.5665 GB, free: 14.2 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.3389, allocations: 244.1 kB / 0.5668 GB, free: 13.96 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.961e-05/0.3389, allocations: 59.52 kB / 0.5668 GB, free: 13.9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.339, allocations: 57.94 kB / 0.5669 GB, free: 13.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.3392, allocations: 342.8 kB / 0.5672 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002459/0.3394, allocations: 84.44 kB / 0.5673 GB, free: 13.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003298/0.3397, allocations: 168.2 kB / 0.5675 GB, free: 13.21 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005389/0.3403, allocations: 250.9 kB / 0.5677 GB, free: 12.92 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3403, allocations: 8 kB / 0.5677 GB, free: 12.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006871/0.341, allocations: 305.6 kB / 0.568 GB, free: 12.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.714e-05/0.341, allocations: 4 kB / 0.568 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.341, allocations: 4.312 kB / 0.568 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.3411, allocations: 12 kB / 0.568 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004431/0.3415, allocations: 91.86 kB / 0.5681 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.42e-05/0.3415, allocations: 11.94 kB / 0.5681 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002762/0.3418, allocations: 47.7 kB / 0.5682 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.351e-05/0.3418, allocations: 12 kB / 0.5682 GB, free: 12.43 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.000164/0.342, allocations: 153.7 kB / 0.5683 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.3421, allocations: 35.81 kB / 0.5683 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.77e-05/0.3422, allocations: 30.5 kB / 0.5684 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3422, allocations: 4 kB / 0.5684 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3422, allocations: 0 / 0.5684 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.3422, allocations: 3.984 kB / 0.5684 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008199/0.343, allocations: 0.5399 MB / 0.5689 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.343, allocations: 4 kB / 0.5689 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003004/0.3433, allocations: 60.03 kB / 0.569 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/0.3433, allocations: 7.938 kB / 0.569 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.3433, allocations: 4 kB / 0.569 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.3433, allocations: 0 / 0.569 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.3433, allocations: 4 kB / 0.569 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006027/0.3439, allocations: 398.7 kB / 0.5694 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.597e-05/0.344, allocations: 35.81 kB / 0.5694 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.612e-05/0.344, allocations: 11.92 kB / 0.5694 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002341/0.3443, allocations: 11.98 kB / 0.5694 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.145e-05/0.3443, allocations: 19.92 kB / 0.5694 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.3443, allocations: 4 kB / 0.5694 GB, free: 11.01 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002652/0.3446, allocations: 243.2 kB / 0.5697 GB, free: 10.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3446, allocations: 0 / 0.5697 GB, free: 10.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004093/0.345, allocations: 71.83 kB / 0.5697 GB, free: 10.7 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.0009104/0.3459, allocations: 0.9343 MB / 0.5707 GB, free: 9.723 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000551/0.3465, allocations: 196 kB / 0.5708 GB, free: 9.531 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3465, allocations: 0 / 0.5708 GB, free: 9.531 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002309/0.3467, allocations: 80.12 kB / 0.5709 GB, free: 9.453 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000433/0.3471, allocations: 21.56 kB / 0.5709 GB, free: 9.434 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004213/0.3514, allocations: 3.001 MB / 0.5739 GB, free: 6.254 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002039/0.3516, allocations: 168.8 kB / 0.574 GB, free: 6.066 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001064/0.3517, allocations: 29.92 kB / 0.5741 GB, free: 6.039 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.3518, allocations: 99.41 kB / 0.5742 GB, free: 5.941 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3518, allocations: 0 / 0.5742 GB, free: 5.941 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02588/0.3777, allocations: 5.273 MB / 0.5793 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.44, allocations: 11.94 kB / 0.5793 GB, free: 0.8164 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 15.425253069028258]