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.001453/0.001453, allocations: 107.1 kB / 20.44 MB, free: 1.324 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.002319/0.002319, allocations: 196.5 kB / 23.72 MB, free: 4.492 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.551/1.551, allocations: 230.6 MB / 257.5 MB, free: 7.754 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.2325/0.2325, allocations: 44.93 MB / 358.8 MB, free: 6.047 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sensors,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sensors",fmuType="me",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.002113/0.002113, allocations: 63.89 kB / 0.493 GB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3938/0.3959, allocations: 65.48 MB / 0.557 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sensors): time 0.004034/0.4, allocations: 1.882 MB / 0.5588 GB, free: 5.656 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001186/0.4012, allocations: 0.5648 MB / 0.5593 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.978e-05/0.4013, allocations: 4 kB / 0.5593 GB, free: 5.082 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001967/0.4015, allocations: 31.72 kB / 0.5594 GB, free: 5.051 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001392/0.4016, allocations: 35.7 kB / 0.5594 GB, free: 5.016 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001842/0.4018, allocations: 47.94 kB / 0.5595 GB, free: 4.969 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002149/0.402, allocations: 155.4 kB / 0.5596 GB, free: 4.816 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.4022, allocations: 43.55 kB / 0.5596 GB, free: 4.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.4023, allocations: 55.78 kB / 0.5597 GB, free: 4.715 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001104/0.4024, allocations: 63.69 kB / 0.5598 GB, free: 4.652 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.871e-05/0.4024, allocations: 12 kB / 0.5598 GB, free: 4.641 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.899e-05/0.4024, allocations: 12 kB / 0.5598 GB, free: 4.629 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.475e-05/0.4025, allocations: 31.86 kB / 0.5598 GB, free: 4.598 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.128e-05/0.4025, allocations: 59.72 kB / 0.5599 GB, free: 4.539 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002441/0.4028, allocations: 159.3 kB / 0.56 GB, free: 4.383 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.4028, allocations: 0 / 0.56 GB, free: 4.383 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4028, allocations: 0 / 0.56 GB, free: 4.383 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.4028, allocations: 4 kB / 0.56 GB, free: 4.379 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.0007184/0.4035, allocations: 373.9 kB / 0.5604 GB, free: 3.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.4036, allocations: 8.031 kB / 0.5604 GB, free: 3.973 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.486e-05/0.4036, allocations: 50.73 kB / 0.5604 GB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.321e-05/0.4037, allocations: 12.84 kB / 0.5604 GB, free: 3.902 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003125/0.404, allocations: 146.3 kB / 0.5606 GB, free: 3.734 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.246e-05/0.404, allocations: 16.66 kB / 0.5606 GB, free: 3.719 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.446e-05/0.404, allocations: 20.31 kB / 0.5606 GB, free: 3.699 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003446/0.4044, allocations: 147.9 kB / 0.5608 GB, free: 3.551 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.4044, allocations: 0 / 0.5608 GB, free: 3.551 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.4044, allocations: 4 kB / 0.5608 GB, free: 3.547 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.4044, allocations: 4 kB / 0.5608 GB, free: 3.543 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003067/0.4047, allocations: 104.8 kB / 0.5609 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.4058, allocations: 0.5513 MB / 0.5614 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002533/0.406, allocations: 62.58 kB / 0.5615 GB, free: 2.758 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.4061, allocations: 25.02 kB / 0.5615 GB, free: 2.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.4062, allocations: 7.984 kB / 0.5615 GB, free: 2.723 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.4062, allocations: 30.56 kB / 0.5615 GB, free: 2.684 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.122e-06/0.4062, allocations: 0 / 0.5615 GB, free: 2.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003943/0.4066, allocations: 117.5 kB / 0.5616 GB, free: 2.562 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.618e-05/0.4066, allocations: 51.41 kB / 0.5617 GB, free: 2.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.4068, allocations: 157.3 kB / 0.5618 GB, free: 2.332 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.4068, allocations: 29.7 kB / 0.5619 GB, free: 2.297 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.207e-05/0.4069, allocations: 131.8 kB / 0.562 GB, free: 2.164 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.017e-05/0.4069, allocations: 23.78 kB / 0.562 GB, free: 2.141 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.775e-05/0.407, allocations: 25.72 kB / 0.562 GB, free: 2.109 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.4071, allocations: 322.8 kB / 0.5624 GB, free: 1.785 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.4073, allocations: 27.97 kB / 0.5624 GB, free: 1.758 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.4074, allocations: 68.2 kB / 0.5624 GB, free: 1.676 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002209/0.4076, allocations: 88.2 kB / 0.5625 GB, free: 1.574 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.4076, allocations: 0 / 0.5625 GB, free: 1.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002862/0.4079, allocations: 129.5 kB / 0.5627 GB, free: 1.441 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.4079, allocations: 8 kB / 0.5627 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.4079, allocations: 0 / 0.5627 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.4079, allocations: 11.92 kB / 0.5627 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.4081, allocations: 31.86 kB / 0.5627 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.4081, allocations: 0 / 0.5627 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.66e-05/0.4082, allocations: 23.88 kB / 0.5627 GB, free: 1.367 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.306e-05/0.4082, allocations: 4 kB / 0.5627 GB, free: 1.363 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.0001005/0.4083, allocations: 125.9 kB / 0.5628 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.979e-05/0.4083, allocations: 7.953 kB / 0.5629 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.254e-05/0.4084, allocations: 16.39 kB / 0.5629 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.4084, allocations: 3.938 kB / 0.5629 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.4084, allocations: 0 / 0.5629 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.4084, allocations: 0 / 0.5629 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002181/0.4086, allocations: 173 kB / 0.563 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.4086, allocations: 4 kB / 0.563 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.673e-05/0.4087, allocations: 19.92 kB / 0.5631 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.4087, allocations: 0 / 0.5631 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.4087, allocations: 4 kB / 0.5631 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.4087, allocations: 3.938 kB / 0.5631 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.4087, allocations: 0 / 0.5631 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002805/0.409, allocations: 191.4 kB / 0.5633 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.074e-05/0.409, allocations: 7.953 kB / 0.5633 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.694e-05/0.409, allocations: 0 / 0.5633 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.4092, allocations: 11.94 kB / 0.5633 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.216e-05/0.4092, allocations: 7.984 kB / 0.5633 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.4092, allocations: 0 / 0.5633 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.176e-05/0.4093, allocations: 120.4 kB / 0.5634 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4093, allocations: 0 / 0.5634 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002511/0.4096, allocations: 27.89 kB / 0.5634 GB, free: 0.582 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.0006298/0.4102, allocations: 0.7123 MB / 0.5641 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002716/0.4105, allocations: 68.08 kB / 0.5642 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.4105, allocations: 4.062 kB / 0.5642 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 9.618e-05/0.4106, allocations: 27.97 kB / 0.5642 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002611/0.4108, allocations: 8 kB / 0.5642 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002049/0.4129, allocations: 1.652 MB / 0.5658 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001031/0.413, allocations: 94.27 kB / 0.5659 GB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.496e-05/0.413, allocations: 8.609 kB / 0.5659 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.244e-05/0.4131, allocations: 35.42 kB / 0.566 GB, free: 13.83 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4131, allocations: 0 / 0.566 GB, free: 13.83 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03143/0.4445, allocations: 2.693 MB / 0.5686 GB, free: 11.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.69, allocations: 0.9375 kB / 0.5686 GB, free: 11.27 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.689322652760893]