Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.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.001777/0.001777, 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.001862/0.001862, 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.486/1.486, 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.2367/0.2367, allocations: 44.94 MB / 358.8 MB, free: 6.059 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.VariableComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_VariableComponents",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.002155/0.002155, allocations: 71.89 kB / 0.493 GB, free: 10.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3717/0.3739, allocations: 65.47 MB / 0.5569 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.003438/0.3773, allocations: 1.699 MB / 0.5586 GB, free: 5.852 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002518/0.3776, allocations: 83.72 kB / 0.5587 GB, free: 5.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.166e-05/0.3776, allocations: 4 kB / 0.5587 GB, free: 5.766 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.066e-05/0.3777, allocations: 7.875 kB / 0.5587 GB, free: 5.758 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.04e-05/0.3778, allocations: 27.72 kB / 0.5587 GB, free: 5.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001241/0.3779, allocations: 23.97 kB / 0.5587 GB, free: 5.707 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001595/0.378, allocations: 115.6 kB / 0.5589 GB, free: 5.594 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.3782, allocations: 33.8 kB / 0.5589 GB, free: 5.562 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.786e-05/0.3783, allocations: 43.86 kB / 0.5589 GB, free: 5.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.217e-05/0.3784, allocations: 47.77 kB / 0.559 GB, free: 5.473 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.205e-05/0.3784, allocations: 12 kB / 0.559 GB, free: 5.461 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.307e-05/0.3784, allocations: 12 kB / 0.559 GB, free: 5.449 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.198e-05/0.3785, allocations: 27.91 kB / 0.559 GB, free: 5.422 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.5e-05/0.3785, allocations: 39.8 kB / 0.5591 GB, free: 5.383 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001872/0.3787, allocations: 119.5 kB / 0.5592 GB, free: 5.266 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3787, allocations: 0 / 0.5592 GB, free: 5.266 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3787, allocations: 0 / 0.5592 GB, free: 5.266 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.3787, allocations: 0 / 0.5592 GB, free: 5.266 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0006513/0.3794, allocations: 349.9 kB / 0.5595 GB, free: 4.891 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.3794, allocations: 8.031 kB / 0.5595 GB, free: 4.883 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.704e-05/0.3795, allocations: 46.73 kB / 0.5596 GB, free: 4.828 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.329e-05/0.3795, allocations: 12.88 kB / 0.5596 GB, free: 4.816 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/0.3796, allocations: 126.3 kB / 0.5597 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.3796, allocations: 8.375 kB / 0.5597 GB, free: 4.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.3797, allocations: 8.375 kB / 0.5597 GB, free: 4.652 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003466/0.38, allocations: 123.8 kB / 0.5598 GB, free: 4.527 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.38, allocations: 7.938 kB / 0.5598 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.38, allocations: 0 / 0.5598 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.38, allocations: 4 kB / 0.5598 GB, free: 4.516 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003579/0.3804, allocations: 111.8 kB / 0.56 GB, free: 4.406 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008671/0.3813, allocations: 422.5 kB / 0.5604 GB, free: 3.941 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002669/0.3815, allocations: 82.53 kB / 0.5604 GB, free: 3.852 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002394/0.3818, allocations: 56.94 kB / 0.5605 GB, free: 3.793 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.652e-05/0.3818, allocations: 4 kB / 0.5605 GB, free: 3.789 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.3818, allocations: 34.5 kB / 0.5605 GB, free: 3.746 MB / 398.1 MB Notification: Performance of pre-optimization done (n=6): time 1.423e-06/0.3818, allocations: 0 / 0.5605 GB, free: 3.746 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008869/0.3827, allocations: 190.3 kB / 0.5607 GB, free: 3.551 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.3828, allocations: 51.41 kB / 0.5608 GB, free: 3.488 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001423/0.3829, allocations: 121.8 kB / 0.5609 GB, free: 3.359 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.3829, allocations: 29.7 kB / 0.5609 GB, free: 3.324 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.559e-05/0.383, allocations: 116.1 kB / 0.561 GB, free: 3.203 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.53e-05/0.383, allocations: 23.8 kB / 0.561 GB, free: 3.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.378e-05/0.3831, allocations: 21.7 kB / 0.5611 GB, free: 3.152 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.3832, allocations: 310.8 kB / 0.5613 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.3834, allocations: 39.95 kB / 0.5614 GB, free: 2.801 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.3836, allocations: 54.55 kB / 0.5614 GB, free: 2.738 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003223/0.3839, allocations: 106.4 kB / 0.5615 GB, free: 2.625 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3839, allocations: 0 / 0.5615 GB, free: 2.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004261/0.3843, allocations: 142.4 kB / 0.5617 GB, free: 2.477 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.3843, allocations: 15.92 kB / 0.5617 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.3843, allocations: 0 / 0.5617 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001556/0.3845, allocations: 20.86 kB / 0.5617 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.3846, allocations: 19.97 kB / 0.5617 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.3858, allocations: 1.299 MB / 0.563 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.3859, allocations: 19.95 kB / 0.563 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.3859, allocations: 8.094 kB / 0.563 GB, free: 0.9688 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001112/0.386, allocations: 121.8 kB / 0.5631 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.779e-05/0.3861, allocations: 7.891 kB / 0.5631 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.233e-05/0.3861, allocations: 12.38 kB / 0.5632 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.3861, allocations: 0 / 0.5632 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.3861, allocations: 0 / 0.5632 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.3861, allocations: 0 / 0.5632 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006816/0.3868, allocations: 391.1 kB / 0.5635 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3868, allocations: 3.984 kB / 0.5635 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.985e-05/0.3869, allocations: 15.98 kB / 0.5636 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.311e-05/0.387, allocations: 28.78 kB / 0.5636 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.387, allocations: 0 / 0.5636 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/0.388, allocations: 1.291 MB / 0.5648 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.388, allocations: 8.031 kB / 0.5648 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004579/0.3885, allocations: 237.1 kB / 0.5651 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.642e-05/0.3885, allocations: 11.94 kB / 0.5651 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.3885, allocations: 4 kB / 0.5651 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.3886, allocations: 12.11 kB / 0.5651 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.133e-05/0.3887, allocations: 15.92 kB / 0.5651 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.3887, allocations: 8 kB / 0.5651 GB, free: 14.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.982e-05/0.3888, allocations: 103.5 kB / 0.5652 GB, free: 14.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3888, allocations: 0 / 0.5652 GB, free: 14.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002613/0.389, allocations: 31.89 kB / 0.5653 GB, free: 14.48 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008446/0.3899, allocations: 0.757 MB / 0.566 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005562/0.3904, allocations: 206.5 kB / 0.5662 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3904, allocations: 0 / 0.5662 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002653/0.3907, allocations: 154.6 kB / 0.5663 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003609/0.3911, allocations: 20.11 kB / 0.5664 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002377/0.3934, allocations: 1.605 MB / 0.5679 GB, free: 11.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.812e-05/0.3935, allocations: 85.31 kB / 0.568 GB, free: 11.49 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.023e-05/0.3936, allocations: 3.75 kB / 0.568 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.334e-05/0.3936, allocations: 27.72 kB / 0.568 GB, free: 11.46 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3936, allocations: 0 / 0.568 GB, free: 11.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03341/0.4271, allocations: 2.925 MB / 0.5709 GB, free: 8.672 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.1, allocations: 7.5 kB / 0.5709 GB, free: 8.668 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --stepSize=0.00019984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_VariableComponents.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/VariableComponents/VariableComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.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.192842673975974]