Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.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.001309/0.001309, 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.001527/0.001527, allocations: 214.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.442/1.442, allocations: 230.6 MB / 258.3 MB, free: 7.793 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.2297/0.2297, allocations: 44.93 MB / 359.6 MB, free: 6.059 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.Sensors,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sensors",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sensors,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sensors",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.002073/0.002073, allocations: 63.91 kB / 0.4938 GB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3262, allocations: 65.48 MB / 0.5577 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sensors): time 0.003966/0.3302, allocations: 1.881 MB / 0.5595 GB, free: 5.668 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001232/0.3314, allocations: 0.5609 MB / 0.5601 GB, free: 5.102 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.3315, allocations: 7.938 kB / 0.5601 GB, free: 5.094 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002066/0.3317, allocations: 27.73 kB / 0.5601 GB, free: 5.066 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001458/0.3319, allocations: 31.7 kB / 0.5602 GB, free: 5.035 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002119/0.3321, allocations: 55.88 kB / 0.5602 GB, free: 4.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002201/0.3323, allocations: 143.5 kB / 0.5604 GB, free: 4.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.3325, allocations: 51.53 kB / 0.5604 GB, free: 4.785 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.3326, allocations: 59.78 kB / 0.5605 GB, free: 4.727 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.631e-05/0.3327, allocations: 67.7 kB / 0.5605 GB, free: 4.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.799e-05/0.3327, allocations: 12 kB / 0.5605 GB, free: 4.648 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.659e-05/0.3327, allocations: 12 kB / 0.5605 GB, free: 4.637 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.991e-05/0.3328, allocations: 35.89 kB / 0.5606 GB, free: 4.602 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.301e-05/0.3328, allocations: 59.67 kB / 0.5606 GB, free: 4.543 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002315/0.3331, allocations: 163.3 kB / 0.5608 GB, free: 4.383 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.3331, allocations: 0 / 0.5608 GB, free: 4.383 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3331, allocations: 0 / 0.5608 GB, free: 4.383 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.3331, allocations: 0 / 0.5608 GB, free: 4.383 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0007033/0.3338, allocations: 377.9 kB / 0.5612 GB, free: 3.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.3338, allocations: 11.97 kB / 0.5612 GB, free: 3.969 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.463e-05/0.3338, allocations: 4.469 kB / 0.5612 GB, free: 3.965 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.758e-05/0.3339, allocations: 50.73 kB / 0.5612 GB, free: 3.906 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.836e-05/0.3339, allocations: 12.84 kB / 0.5612 GB, free: 3.895 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000277/0.3342, allocations: 146.3 kB / 0.5614 GB, free: 3.727 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/0.3342, allocations: 8.656 kB / 0.5614 GB, free: 3.719 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.624e-05/0.3343, allocations: 20.38 kB / 0.5614 GB, free: 3.699 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003689/0.3346, allocations: 143.8 kB / 0.5615 GB, free: 3.555 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.3346, allocations: 3.938 kB / 0.5615 GB, free: 3.551 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.3347, allocations: 4 kB / 0.5615 GB, free: 3.547 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.3347, allocations: 11.97 kB / 0.5616 GB, free: 3.535 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002955/0.335, allocations: 100.8 kB / 0.5616 GB, free: 3.438 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/0.3362, allocations: 0.5471 MB / 0.5622 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002837/0.3364, allocations: 66.52 kB / 0.5622 GB, free: 2.754 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.3366, allocations: 29 kB / 0.5623 GB, free: 2.723 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.3366, allocations: 4 kB / 0.5623 GB, free: 2.719 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.738e-05/0.3366, allocations: 34.56 kB / 0.5623 GB, free: 2.676 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.223e-06/0.3366, allocations: 0 / 0.5623 GB, free: 2.676 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0004072/0.337, allocations: 109.6 kB / 0.5624 GB, free: 2.562 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.3371, allocations: 55.34 kB / 0.5625 GB, free: 2.496 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002073/0.3373, allocations: 161.1 kB / 0.5626 GB, free: 2.324 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.3373, allocations: 29.7 kB / 0.5626 GB, free: 2.289 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.3374, allocations: 139.7 kB / 0.5628 GB, free: 2.148 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.654e-05/0.3374, allocations: 11.84 kB / 0.5628 GB, free: 2.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.463e-05/0.3375, allocations: 33.66 kB / 0.5628 GB, free: 2.098 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.3376, allocations: 318.8 kB / 0.5631 GB, free: 1.777 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.3378, allocations: 27.97 kB / 0.5632 GB, free: 1.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.3379, allocations: 68.27 kB / 0.5632 GB, free: 1.668 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002165/0.3381, allocations: 96.12 kB / 0.5633 GB, free: 1.559 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3381, allocations: 0 / 0.5633 GB, free: 1.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002987/0.3384, allocations: 125.6 kB / 0.5634 GB, free: 1.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.3384, allocations: 8 kB / 0.5634 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.3384, allocations: 0 / 0.5634 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.311e-05/0.3385, allocations: 7.938 kB / 0.5634 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.3386, allocations: 31.97 kB / 0.5635 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.3386, allocations: 0 / 0.5635 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.439e-05/0.3387, allocations: 11.95 kB / 0.5635 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.427e-05/0.3387, allocations: 4 kB / 0.5635 GB, free: 1.367 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (11): * Single equations (assignments): 11 * 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.0001204/0.3388, allocations: 129.8 kB / 0.5636 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.166e-05/0.3389, allocations: 7.953 kB / 0.5636 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.064e-05/0.3389, allocations: 16.34 kB / 0.5636 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.3389, allocations: 0 / 0.5636 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3389, allocations: 0 / 0.5636 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.3389, allocations: 0 / 0.5636 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002382/0.3392, allocations: 180.6 kB / 0.5638 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3392, allocations: 256 / 0.5638 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.545e-05/0.3392, allocations: 19.98 kB / 0.5638 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.3393, allocations: 0 / 0.5638 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.3393, allocations: 3.938 kB / 0.5638 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.3393, allocations: 4 kB / 0.5638 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3393, allocations: 3.938 kB / 0.5638 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003032/0.3396, allocations: 183.4 kB / 0.564 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.36e-05/0.3396, allocations: 11.95 kB / 0.564 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.96e-05/0.3396, allocations: 3.938 kB / 0.564 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.815e-05/0.3397, allocations: 7.984 kB / 0.564 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.687e-05/0.3397, allocations: 4 kB / 0.564 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.3397, allocations: 0 / 0.564 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.251e-05/0.3398, allocations: 116.9 kB / 0.5642 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3398, allocations: 4 kB / 0.5642 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002509/0.3401, allocations: 23.95 kB / 0.5642 GB, free: 0.5898 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (5): * Single equations (assignments): 5 * 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.0006013/0.3407, allocations: 0.7239 MB / 0.5649 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000323/0.341, allocations: 71.88 kB / 0.565 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.341, allocations: 256 / 0.565 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 9.699e-05/0.3411, allocations: 31.98 kB / 0.565 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002759/0.3414, allocations: 7.938 kB / 0.565 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.3436, allocations: 1.652 MB / 0.5666 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001035/0.3437, allocations: 98.2 kB / 0.5667 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.525e-05/0.3437, allocations: 8.656 kB / 0.5667 GB, free: 13.85 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.043e-05/0.3438, allocations: 35.44 kB / 0.5667 GB, free: 13.82 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3438, allocations: 0 / 0.5667 GB, free: 13.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02263/0.3664, allocations: 2.372 MB / 0.5691 GB, free: 11.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.06, allocations: 6.297 kB / 0.5691 GB, free: 11.59 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sensors_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sensors.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sensors/Sensors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sensors.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.970728495973162]