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.001819/0.001819, 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.002449/0.002449, allocations: 212.3 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.599/1.599, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.2776/0.2776, allocations: 44.94 MB / 358.8 MB, free: 6.062 MB / 286.1 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",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.002825/0.002825, allocations: 63.89 kB / 0.493 GB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3896/0.3925, allocations: 65.47 MB / 0.557 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004588/0.397, allocations: 2.514 MB / 0.5594 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001785/0.3988, allocations: 0.74 MB / 0.5601 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002763/0.3991, allocations: 11.94 kB / 0.5601 GB, free: 4.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003106/0.3994, allocations: 75.36 kB / 0.5602 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004119/0.3998, allocations: 107.2 kB / 0.5603 GB, free: 4.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000356/0.4002, allocations: 107.9 kB / 0.5604 GB, free: 3.984 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005821/0.4008, allocations: 430.2 kB / 0.5608 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002322/0.401, allocations: 95.84 kB / 0.5609 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002558/0.4012, allocations: 151.5 kB / 0.5611 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002492/0.4015, allocations: 147.2 kB / 0.5612 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.266e-05/0.4016, allocations: 32 kB / 0.5612 GB, free: 3.141 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.92e-05/0.4016, allocations: 36 kB / 0.5613 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.83e-05/0.4017, allocations: 75.69 kB / 0.5613 GB, free: 3.031 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001645/0.4019, allocations: 147.3 kB / 0.5615 GB, free: 2.887 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005157/0.4024, allocations: 436.1 kB / 0.5619 GB, free: 2.461 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.4024, allocations: 7.938 kB / 0.5619 GB, free: 2.453 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.4024, allocations: 0 / 0.5619 GB, free: 2.453 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.792e-05/0.4024, allocations: 0 / 0.5619 GB, free: 2.453 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.001246/0.4037, allocations: 0.6066 MB / 0.5625 GB, free: 1.816 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.4037, allocations: 16.03 kB / 0.5625 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.83e-05/0.4038, allocations: 66.72 kB / 0.5626 GB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.585e-05/0.4039, allocations: 40.7 kB / 0.5626 GB, free: 1.688 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004709/0.4044, allocations: 228.8 kB / 0.5628 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.474e-05/0.4044, allocations: 25.38 kB / 0.5629 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.037e-05/0.4045, allocations: 36.38 kB / 0.5629 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007635/0.4052, allocations: 358 kB / 0.5632 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.4052, allocations: 3.938 kB / 0.5632 GB, free: 1.004 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.672e-05/0.4053, allocations: 23.98 kB / 0.5633 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.4053, allocations: 8 kB / 0.5633 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007121/0.406, allocations: 265.5 kB / 0.5635 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002393/0.4084, allocations: 1.226 MB / 0.5647 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005146/0.4089, allocations: 194.5 kB / 0.5649 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002107/0.4091, allocations: 71.56 kB / 0.565 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.71e-05/0.4092, allocations: 7.938 kB / 0.565 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.4092, allocations: 42.5 kB / 0.565 GB, free: 15.04 MB / 414.1 MB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.4092, allocations: 4 kB / 0.565 GB, free: 15.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008016/0.41, allocations: 249.2 kB / 0.5653 GB, free: 14.79 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.339e-05/0.4101, allocations: 140.4 kB / 0.5654 GB, free: 14.62 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004328/0.4105, allocations: 341.6 kB / 0.5657 GB, free: 14.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/0.4105, allocations: 29.7 kB / 0.5658 GB, free: 14.24 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002887/0.4108, allocations: 256.2 kB / 0.566 GB, free: 13.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.464e-05/0.4109, allocations: 55.58 kB / 0.5661 GB, free: 13.93 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001293/0.411, allocations: 53.94 kB / 0.5661 GB, free: 13.86 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.4112, allocations: 346.8 kB / 0.5664 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002655/0.4115, allocations: 72.5 kB / 0.5665 GB, free: 13.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003174/0.4118, allocations: 172.2 kB / 0.5667 GB, free: 13.24 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006154/0.4124, allocations: 250.9 kB / 0.5669 GB, free: 12.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.4124, allocations: 0 / 0.5669 GB, free: 12.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007833/0.4132, allocations: 309 kB / 0.5672 GB, free: 12.64 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.4132, allocations: 8 kB / 0.5672 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.4132, allocations: 0.5625 kB / 0.5672 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.758e-05/0.4133, allocations: 12.23 kB / 0.5672 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004412/0.4137, allocations: 91.88 kB / 0.5673 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.541e-05/0.4137, allocations: 4 kB / 0.5673 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003115/0.414, allocations: 55.64 kB / 0.5674 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.253e-05/0.4141, allocations: 16 kB / 0.5674 GB, free: 12.46 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.0002065/0.4143, allocations: 145.7 kB / 0.5675 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.4144, allocations: 35.77 kB / 0.5676 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.978e-05/0.4145, allocations: 34.5 kB / 0.5676 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.4145, allocations: 7.984 kB / 0.5676 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.4145, allocations: 0 / 0.5676 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.4145, allocations: 4 kB / 0.5676 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009981/0.4155, allocations: 0.5399 MB / 0.5681 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.4155, allocations: 0 / 0.5681 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000297/0.4158, allocations: 60.03 kB / 0.5682 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.147e-06/0.4158, allocations: 7.938 kB / 0.5682 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.875e-05/0.4158, allocations: 4 kB / 0.5682 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.68e-06/0.4158, allocations: 4 kB / 0.5682 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.4158, allocations: 0 / 0.5682 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006638/0.4165, allocations: 395.1 kB / 0.5686 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.402e-05/0.4166, allocations: 39.69 kB / 0.5686 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.188e-05/0.4166, allocations: 19.88 kB / 0.5686 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002269/0.4169, allocations: 11.98 kB / 0.5686 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.588e-05/0.4169, allocations: 23.89 kB / 0.5687 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.4169, allocations: 8 kB / 0.5687 GB, free: 11.03 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002751/0.4172, allocations: 239.1 kB / 0.5689 GB, free: 10.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4172, allocations: 0 / 0.5689 GB, free: 10.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004076/0.4176, allocations: 67.89 kB / 0.569 GB, free: 10.73 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.000995/0.4186, allocations: 0.9343 MB / 0.5699 GB, free: 9.746 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007184/0.4193, allocations: 188.1 kB / 0.5701 GB, free: 9.562 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.4193, allocations: 64 / 0.5701 GB, free: 9.562 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003167/0.4197, allocations: 83.83 kB / 0.5701 GB, free: 9.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004568/0.4201, allocations: 23.62 kB / 0.5702 GB, free: 9.461 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00451/0.4246, allocations: 3.001 MB / 0.5731 GB, free: 6.281 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001842/0.4248, allocations: 164.8 kB / 0.5733 GB, free: 6.102 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.4249, allocations: 21.94 kB / 0.5733 GB, free: 6.082 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001634/0.4251, allocations: 107.4 kB / 0.5734 GB, free: 5.977 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4251, allocations: 0 / 0.5734 GB, free: 5.977 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03636/0.4614, allocations: 5.548 MB / 0.5788 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.88, allocations: 7.375 kB / 0.5788 GB, free: 0.5547 MB / 414.1 MB " [Timeout remaining time 648] (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.02988239005208]