Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.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.001368/0.001368, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001427/0.001427, allocations: 204.5 kB / 23.73 MB, free: 4.379 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.472/1.472, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2307/0.2307, allocations: 46.96 MB / 360.9 MB, free: 4.121 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.BasicComponents,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_BasicComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.BasicComponents,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_BasicComponents",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002069/0.002069, allocations: 63.91 kB / 0.4961 GB, free: 7.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3619/0.3639, allocations: 66.04 MB / 0.5606 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.BasicComponents): time 0.005119/0.3691, allocations: 3.24 MB / 0.5637 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.3707, allocations: 0.7924 MB / 0.5645 GB, free: 168 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001926/0.3709, allocations: 11.94 kB / 0.5645 GB, free: 156 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002124/0.3711, allocations: 75.23 kB / 0.5646 GB, free: 80 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002947/0.3714, allocations: 134.9 kB / 0.5647 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003733/0.3718, allocations: 131.8 kB / 0.5649 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005433/0.3723, allocations: 0.5139 MB / 0.5654 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003517/0.3727, allocations: 186.3 kB / 0.5655 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000249/0.3729, allocations: 215.3 kB / 0.5657 GB, free: 14.9 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003053/0.3732, allocations: 238.9 kB / 0.566 GB, free: 14.67 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.773e-05/0.3733, allocations: 48 kB / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.406e-05/0.3734, allocations: 51.94 kB / 0.5661 GB, free: 14.57 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.3735, allocations: 115.6 kB / 0.5662 GB, free: 14.46 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002128/0.3737, allocations: 203.1 kB / 0.5664 GB, free: 14.26 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000639/0.3744, allocations: 0.5563 MB / 0.5669 GB, free: 13.7 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3744, allocations: 0 / 0.5669 GB, free: 13.7 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3744, allocations: 0 / 0.5669 GB, free: 13.7 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.747e-06/0.3744, allocations: 4 kB / 0.5669 GB, free: 13.7 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001331/0.3757, allocations: 0.6961 MB / 0.5676 GB, free: 12.97 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.3757, allocations: 12.03 kB / 0.5676 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001003/0.3758, allocations: 94.64 kB / 0.5677 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.517e-05/0.3759, allocations: 60.55 kB / 0.5678 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004942/0.3764, allocations: 255.7 kB / 0.568 GB, free: 12.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.844e-05/0.3765, allocations: 37.38 kB / 0.568 GB, free: 12.48 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.589e-05/0.3766, allocations: 48.38 kB / 0.5681 GB, free: 12.44 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008463/0.3774, allocations: 0.5026 MB / 0.5686 GB, free: 11.9 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.3774, allocations: 4 kB / 0.5686 GB, free: 11.89 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.749e-05/0.3775, allocations: 20 kB / 0.5686 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.3775, allocations: 12 kB / 0.5686 GB, free: 11.86 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007141/0.3782, allocations: 324.1 kB / 0.5689 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002558/0.3808, allocations: 1.51 MB / 0.5704 GB, free: 9.934 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005695/0.3813, allocations: 233 kB / 0.5706 GB, free: 9.688 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003209/0.3816, allocations: 121.7 kB / 0.5707 GB, free: 9.562 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.204e-05/0.3817, allocations: 11.94 kB / 0.5707 GB, free: 9.551 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.3817, allocations: 30.81 kB / 0.5708 GB, free: 9.512 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.014e-06/0.3817, allocations: 0 / 0.5708 GB, free: 9.512 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.002899/0.3846, allocations: 1.142 MB / 0.5719 GB, free: 8.309 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/0.3847, allocations: 89.09 kB / 0.572 GB, free: 8.203 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003169/0.385, allocations: 265.8 kB / 0.5722 GB, free: 7.938 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.08e-05/0.385, allocations: 33.7 kB / 0.5723 GB, free: 7.898 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002031/0.3852, allocations: 264.1 kB / 0.5725 GB, free: 7.637 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.3853, allocations: 130.9 kB / 0.5726 GB, free: 7.508 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001279/0.3855, allocations: 74.12 kB / 0.5727 GB, free: 7.426 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.3856, allocations: 342.8 kB / 0.573 GB, free: 7.082 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002829/0.3859, allocations: 108.8 kB / 0.5731 GB, free: 6.977 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003551/0.3863, allocations: 204.4 kB / 0.5733 GB, free: 6.738 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006419/0.3869, allocations: 345.9 kB / 0.5737 GB, free: 6.359 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3869, allocations: 3.938 kB / 0.5737 GB, free: 6.355 MB / 414.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008709/0.3878, allocations: 419.4 kB / 0.5741 GB, free: 5.938 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.3878, allocations: 4 kB / 0.5741 GB, free: 5.934 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.3878, allocations: 4 kB / 0.5741 GB, free: 5.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001579/0.388, allocations: 36.78 kB / 0.5741 GB, free: 5.891 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004976/0.3885, allocations: 119.9 kB / 0.5742 GB, free: 5.773 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001323/0.3898, allocations: 1.335 MB / 0.5755 GB, free: 4.312 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002452/0.3901, allocations: 19.98 kB / 0.5755 GB, free: 4.293 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.133e-05/0.3901, allocations: 16 kB / 0.5756 GB, free: 4.277 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (51): * Single equations (assignments): 50 * 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.0002423/0.3903, allocations: 169.6 kB / 0.5757 GB, free: 4.102 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.566e-05/0.3904, allocations: 31.81 kB / 0.5757 GB, free: 4.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.808e-05/0.3905, allocations: 42.17 kB / 0.5758 GB, free: 4.031 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.3905, allocations: 4 kB / 0.5758 GB, free: 4.027 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.3905, allocations: 0 / 0.5758 GB, free: 4.027 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.3905, allocations: 0 / 0.5758 GB, free: 4.027 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.3916, allocations: 0.652 MB / 0.5764 GB, free: 3.316 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3916, allocations: 0 / 0.5764 GB, free: 3.316 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000417/0.392, allocations: 99.94 kB / 0.5765 GB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.253e-05/0.3921, allocations: 28.78 kB / 0.5766 GB, free: 3.188 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.3921, allocations: 8 kB / 0.5766 GB, free: 3.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001148/0.3933, allocations: 1.319 MB / 0.5778 GB, free: 1.746 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.3933, allocations: 0 / 0.5778 GB, free: 1.746 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.3943, allocations: 0.6094 MB / 0.5784 GB, free: 1.113 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.3945, allocations: 47.83 kB / 0.5785 GB, free: 1.066 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.053e-05/0.3945, allocations: 11.98 kB / 0.5785 GB, free: 1.055 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002566/0.3947, allocations: 23.92 kB / 0.5785 GB, free: 1.031 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.648e-05/0.3948, allocations: 23.95 kB / 0.5785 GB, free: 1.008 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/0.3948, allocations: 12 kB / 0.5786 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002016/0.395, allocations: 185.2 kB / 0.5787 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.395, allocations: 0 / 0.5787 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004627/0.3955, allocations: 92 kB / 0.5788 GB, free: 0.7227 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (converter.i,converter1.i,eddyCurrent.Phi) * 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 (32): * Single equations (assignments): 31 * 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.001383/0.3969, allocations: 1.147 MB / 0.5799 GB, free: 15.54 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008492/0.3977, allocations: 394.4 kB / 0.5803 GB, free: 15.14 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3977, allocations: 0 / 0.5803 GB, free: 15.14 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003965/0.3981, allocations: 249.7 kB / 0.5806 GB, free: 14.89 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004725/0.3986, allocations: 44.42 kB / 0.5806 GB, free: 14.85 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005319/0.4039, allocations: 3.492 MB / 0.584 GB, free: 11.18 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.4042, allocations: 211.8 kB / 0.5842 GB, free: 10.95 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001701/0.4044, allocations: 30.97 kB / 0.5842 GB, free: 10.92 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002137/0.4046, allocations: 143.4 kB / 0.5844 GB, free: 10.78 MB / 430.1 MB Notification: Performance of SimCode: time 1.563e-06/0.4046, allocations: 3.938 kB / 0.5844 GB, free: 10.77 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0407/0.4453, allocations: 7.323 MB / 0.5915 GB, free: 3.625 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.76/12.21, allocations: 10.84 kB / 0.5915 GB, free: 3.617 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents_res.csv --start-time 0 --stop-time 14 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.00300043 ModelicaTest_4_1_0_ModelicaTest_Magnetic_FluxTubes_BasicComponents.fmu > ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Magnetic/FluxTubes/BasicComponents/BasicComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable converter.Phi in file ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents_res.csv. Warning: Get data of variable converter.Phi from file ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents_res.csv failed! Error: Could not read variable leakageWithCoefficient.port_p.Phi in file ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents_res.csv. Warning: Get data of variable leakageWithCoefficient.port_p.Phi from file ModelicaTest_4.1.0_ModelicaTest.Magnetic.FluxTubes.BasicComponents_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.378705473995069]