Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001413/0.001413, allocations: 104.2 kB / 20.48 MB, free: 1.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00165/0.00165, allocations: 214.9 kB / 23.77 MB, free: 4.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 230.5 MB / 257.4 MB, free: 7.734 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2188/0.2188, allocations: 46.95 MB / 360.9 MB, free: 3.906 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002366/0.002366, allocations: 76.16 kB / 0.4962 GB, free: 7.535 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2861, allocations: 66.09 MB / 0.5607 GB, free: 4.027 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.01186/0.298, allocations: 9.8 MB / 0.5703 GB, free: 10.18 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.006071/0.304, allocations: 2.7 MB / 0.573 GB, free: 7.469 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001514/0.3056, allocations: 63.81 kB / 0.573 GB, free: 7.406 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003006/0.3086, allocations: 1.312 MB / 0.5743 GB, free: 6.09 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002923/0.3115, allocations: 1.249 MB / 0.5755 GB, free: 4.836 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004066/0.3119, allocations: 79.91 kB / 0.5756 GB, free: 4.758 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003522/0.3154, allocations: 2.727 MB / 0.5783 GB, free: 2.027 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002646/0.3181, allocations: 1.667 MB / 0.5799 GB, free: 332 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001886/0.3199, allocations: 1.063 MB / 0.5809 GB, free: 15.25 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002336/0.3223, allocations: 1.53 MB / 0.5824 GB, free: 13.72 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006306/0.3229, allocations: 212 kB / 0.5826 GB, free: 13.51 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001251/0.3242, allocations: 415.3 kB / 0.583 GB, free: 13.11 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001657/0.3258, allocations: 1.433 MB / 0.5844 GB, free: 11.67 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00189/0.3277, allocations: 1.191 MB / 0.5856 GB, free: 10.47 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006364/0.3341, allocations: 5.48 MB / 0.5909 GB, free: 4.969 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3341, allocations: 0 / 0.5909 GB, free: 4.969 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3341, allocations: 0 / 0.5909 GB, free: 4.969 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000164/0.3342, allocations: 0 / 0.5909 GB, free: 4.969 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1443 * Number of variables: 1443 Notification: Performance of Generate backend data structure: time 0.00612/0.3404, allocations: 3.601 MB / 0.5944 GB, free: 1.316 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.3404, allocations: 8.031 kB / 0.5944 GB, free: 1.309 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009148/0.3413, allocations: 0.6749 MB / 0.5951 GB, free: 0.625 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009856/0.3512, allocations: 2.997 MB / 0.598 GB, free: 13.62 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003416/0.3546, allocations: 1.484 MB / 0.5995 GB, free: 12.11 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002181/0.3548, allocations: 172.7 kB / 0.5996 GB, free: 11.93 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007678/0.3556, allocations: 223.8 kB / 0.5999 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01467/0.3703, allocations: 9.48 MB / 0.6091 GB, free: 1.852 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-05/0.3703, allocations: 23.75 kB / 0.6091 GB, free: 1.828 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003254/0.3706, allocations: 107.8 kB / 0.6092 GB, free: 1.723 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003855/0.3745, allocations: 2.373 MB / 0.6116 GB, free: 15.35 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01651/0.391, allocations: 8.668 MB / 0.62 GB, free: 6.664 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0393/0.4303, allocations: 27.78 MB / 0.6472 GB, free: 10.07 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004477/0.4348, allocations: 2.111 MB / 0.6492 GB, free: 7.957 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/0.4361, allocations: 0.8984 MB / 0.6501 GB, free: 7.059 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008115/0.4442, allocations: 3.927 MB / 0.6539 GB, free: 3.098 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.578e-05/0.4442, allocations: 47.16 kB / 0.654 GB, free: 3.043 MB / 494.1 MB Notification: Performance of pre-optimization done (n=126): time 4.228e-06/0.4442, allocations: 0 / 0.654 GB, free: 3.043 MB / 494.1 MB Notification: Performance of matching and sorting (n=126): time 0.006109/0.4504, allocations: 2.878 MB / 0.6568 GB, free: 164 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/0.4504, allocations: 60.06 kB / 0.6568 GB, free: 92 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003804/0.4542, allocations: 2.736 MB / 0.6595 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001441/0.4544, allocations: 37.7 kB / 0.6595 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002055/0.4564, allocations: 2.763 MB / 0.6622 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000597/0.457, allocations: 0.5079 MB / 0.6627 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001191/0.4582, allocations: 0.9091 MB / 0.6636 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002014/0.4584, allocations: 361.9 kB / 0.664 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001899/0.4603, allocations: 1.352 MB / 0.6653 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004406/0.4647, allocations: 4.122 MB / 0.6693 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007/0.4717, allocations: 5.968 MB / 0.6751 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.383e-05/0.4718, allocations: 32 kB / 0.6752 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of matching and sorting (n=588) (initialization): time 0.008875/0.4807, allocations: 5.284 MB / 0.6803 GB, free: 5.164 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.234e-05/0.4808, allocations: 48 kB / 0.6804 GB, free: 5.117 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001145/0.4809, allocations: 104 kB / 0.6805 GB, free: 5.016 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001332/0.481, allocations: 128.8 kB / 0.6806 GB, free: 4.891 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002754/0.4838, allocations: 0.9825 MB / 0.6816 GB, free: 3.906 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001493/0.4839, allocations: 191.3 kB / 0.6817 GB, free: 3.719 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002765/0.4867, allocations: 0.6127 MB / 0.6823 GB, free: 3.102 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003998/0.4871, allocations: 280 kB / 0.6826 GB, free: 2.828 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * Number of states: 0 () * Number of discrete variables: 21 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (540): * Single equations (assignments): 534 * Array equations: 6 * 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.002834/0.4899, allocations: 1.901 MB / 0.6845 GB, free: 0.9141 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003208/0.4902, allocations: 226.5 kB / 0.6847 GB, free: 0.6914 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004569/0.4907, allocations: 267.3 kB / 0.6849 GB, free: 436 kB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.982e-05/0.4907, allocations: 19.98 kB / 0.685 GB, free: 416 kB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.4907, allocations: 4 kB / 0.685 GB, free: 412 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.4907, allocations: 3.984 kB / 0.685 GB, free: 408 kB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008768/0.4995, allocations: 5.485 MB / 0.6903 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/0.4995, allocations: 12.05 kB / 0.6903 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005612/0.5001, allocations: 135.7 kB / 0.6905 GB, free: 10.65 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.161e-05/0.5001, allocations: 8 kB / 0.6905 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.92e-05/0.5001, allocations: 20 kB / 0.6905 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.157e-05/0.5002, allocations: 11.98 kB / 0.6905 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/0.5002, allocations: 7.938 kB / 0.6905 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002228/0.5024, allocations: 1.797 MB / 0.6923 GB, free: 8.734 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004162/0.5028, allocations: 222.2 kB / 0.6925 GB, free: 8.516 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001846/0.503, allocations: 20 kB / 0.6925 GB, free: 8.496 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005448/0.5035, allocations: 39.95 kB / 0.6925 GB, free: 8.457 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.5037, allocations: 64.28 kB / 0.6926 GB, free: 8.395 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.834e-05/0.5037, allocations: 39.98 kB / 0.6926 GB, free: 8.355 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002158/0.5059, allocations: 1.56 MB / 0.6942 GB, free: 6.781 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5059, allocations: 3.938 kB / 0.6942 GB, free: 6.777 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003207/0.5091, allocations: 0.9965 MB / 0.6951 GB, free: 5.777 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (78): * Single equations (assignments): 72 * Array equations: 6 * 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.002676/0.5118, allocations: 2.449 MB / 0.6975 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.004579/0.5164, allocations: 3.015 MB / 0.7005 GB, free: 264 kB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.5164, allocations: 0 / 0.7005 GB, free: 264 kB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008813/0.5172, allocations: 0.6876 MB / 0.7011 GB, free: 15.57 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.5184, allocations: 247.1 kB / 0.7014 GB, free: 15.33 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.28/0.7984, allocations: 29.37 MB / 0.7301 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004142/0.8026, allocations: 2.413 MB / 0.7324 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002792/0.8054, allocations: 1.485 MB / 0.7339 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002268/0.8076, allocations: 1.512 MB / 0.7353 GB, free: 156.1 MB / 0.5606 GB Notification: Performance of SimCode: time 2.345e-06/0.8076, allocations: 0 / 0.7353 GB, free: 156.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06754/0.8752, allocations: 38.12 MB / 0.7726 GB, free: 122.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.44/15.32, allocations: 8 kB / 0.7726 GB, free: 122.3 MB / 0.5606 GB " [Timeout remaining time 645] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00039984 ModelicaTest_trunk_ModelicaTest_MultiBody_Visualizers_Torus.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Visualizers/Torus/Torus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable torus1.surface.nu in file ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.csv. Warning: Get data of variable torus1.surface.nu from file ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.csv failed! Error: Could not read variable torus1.surface.nv in file ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.csv. Warning: Get data of variable torus1.surface.nv from file ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.csv failed! Error: Could not read variable torus2.surface.nu in file ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.csv. Warning: Get data of variable torus2.surface.nu from file ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.csv failed! Error: Could not read variable torus2.surface.nv in file ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.csv. Warning: Get data of variable torus2.surface.nv from file ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.375289896997856]