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.001336/0.001336, allocations: 116.9 kB / 18.49 MB, free: 4.535 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.001513/0.001513, allocations: 220.7 kB / 21.46 MB, free: 1.582 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.565/1.565, allocations: 230.5 MB / 254.7 MB, free: 15.18 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.2373/0.2373, allocations: 46.92 MB / 357.7 MB, free: 10.21 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002408/0.002408, allocations: 79.89 kB / 0.4916 GB, free: 7.746 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1319, allocations: 66.04 MB / 0.5561 GB, free: 5.574 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.01398/0.1459, allocations: 11.28 MB / 0.5672 GB, free: 10.23 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007255/0.1532, allocations: 2.842 MB / 0.5699 GB, free: 7.371 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002228/0.1554, allocations: 59.81 kB / 0.57 GB, free: 7.312 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00323/0.1586, allocations: 1.343 MB / 0.5713 GB, free: 5.965 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003547/0.1622, allocations: 1.249 MB / 0.5725 GB, free: 4.711 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005357/0.1627, allocations: 75.84 kB / 0.5726 GB, free: 4.637 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004442/0.1672, allocations: 2.724 MB / 0.5753 GB, free: 1.91 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002745/0.1699, allocations: 1.614 MB / 0.5768 GB, free: 272 kB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002213/0.1721, allocations: 1.07 MB / 0.5779 GB, free: 15.19 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002993/0.1751, allocations: 1.6 MB / 0.5794 GB, free: 13.59 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009127/0.176, allocations: 212 kB / 0.5796 GB, free: 13.38 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001539/0.1776, allocations: 0.4993 MB / 0.5801 GB, free: 12.88 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001949/0.1795, allocations: 1.425 MB / 0.5815 GB, free: 11.45 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002401/0.1819, allocations: 1.7 MB / 0.5832 GB, free: 9.738 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008232/0.1901, allocations: 5.46 MB / 0.5885 GB, free: 4.254 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.1902, allocations: 0 / 0.5885 GB, free: 4.254 MB / 446.1 MB Notification: Performance of FrontEnd: time 7.164e-06/0.1902, allocations: 3.984 kB / 0.5885 GB, free: 4.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002633/0.1904, allocations: 0 / 0.5885 GB, free: 4.25 MB / 446.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.009021/0.1994, allocations: 3.676 MB / 0.5921 GB, free: 0.5039 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.1995, allocations: 8.031 kB / 0.5921 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001412/0.1996, allocations: 88.62 kB / 0.5922 GB, free: 416 kB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2656/0.4652, allocations: 0.664 MB / 0.5928 GB, free: 33.61 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01132/0.4765, allocations: 2.961 MB / 0.5957 GB, free: 33.38 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003909/0.4804, allocations: 1.539 MB / 0.5972 GB, free: 32.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002319/0.4807, allocations: 172.5 kB / 0.5974 GB, free: 32.83 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001113/0.4818, allocations: 225.1 kB / 0.5976 GB, free: 32.83 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02113/0.5029, allocations: 9.475 MB / 0.6069 GB, free: 29.62 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000104/0.503, allocations: 15.78 kB / 0.6069 GB, free: 29.61 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001034/0.5041, allocations: 111.4 kB / 0.607 GB, free: 29.55 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004774/0.5088, allocations: 2.376 MB / 0.6093 GB, free: 29.12 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01911/0.5279, allocations: 8.667 MB / 0.6178 GB, free: 25.7 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0393/0.5672, allocations: 29.16 MB / 0.6463 GB, free: 11.92 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005457/0.5727, allocations: 2.944 MB / 0.6491 GB, free: 8.738 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001595/0.5743, allocations: 0.9067 MB / 0.65 GB, free: 7.828 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009936/0.5842, allocations: 4.845 MB / 0.6547 GB, free: 2.73 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.534e-05/0.5843, allocations: 43.22 kB / 0.6548 GB, free: 2.68 MB / 462.1 MB Notification: Performance of pre-optimization done (n=126): time 4.548e-06/0.5843, allocations: 4 kB / 0.6548 GB, free: 2.676 MB / 462.1 MB Notification: Performance of matching and sorting (n=126): time 0.007003/0.5913, allocations: 2.749 MB / 0.6575 GB, free: 15.91 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.5913, allocations: 56.06 kB / 0.6575 GB, free: 15.85 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00514/0.5965, allocations: 2.569 MB / 0.66 GB, free: 13.25 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001957/0.5967, allocations: 33.7 kB / 0.6601 GB, free: 13.21 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002547/0.5992, allocations: 2.764 MB / 0.6628 GB, free: 10.43 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008891/0.6001, allocations: 0.5117 MB / 0.6633 GB, free: 9.91 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001892/0.602, allocations: 0.9052 MB / 0.6642 GB, free: 8.992 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002232/0.6022, allocations: 357.9 kB / 0.6645 GB, free: 8.637 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002516/0.6047, allocations: 1.355 MB / 0.6658 GB, free: 7.273 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005063/0.6098, allocations: 4.114 MB / 0.6698 GB, free: 1.77 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007708/0.6175, allocations: 5.968 MB / 0.6757 GB, free: 10.43 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001027/0.6176, allocations: 32 kB / 0.6757 GB, free: 10.39 MB / 494.1 MB Notification: Performance of matching and sorting (n=588) (initialization): time 0.01047/0.6281, allocations: 5.291 MB / 0.6809 GB, free: 5.098 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000114/0.6282, allocations: 48 kB / 0.6809 GB, free: 5.051 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001635/0.6284, allocations: 96 kB / 0.681 GB, free: 4.957 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001635/0.6285, allocations: 128 kB / 0.6811 GB, free: 4.832 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003281/0.6318, allocations: 0.9832 MB / 0.6821 GB, free: 3.848 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002128/0.632, allocations: 195.2 kB / 0.6823 GB, free: 3.656 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003216/0.6352, allocations: 0.6126 MB / 0.6829 GB, free: 3.039 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007177/0.6359, allocations: 284 kB / 0.6831 GB, free: 2.762 MB / 494.1 MB 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.003482/0.6394, allocations: 1.891 MB / 0.685 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004406/0.6399, allocations: 225.9 kB / 0.6852 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007243/0.6406, allocations: 275.3 kB / 0.6855 GB, free: 376 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.669e-05/0.6406, allocations: 16 kB / 0.6855 GB, free: 360 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.6406, allocations: 0 / 0.6855 GB, free: 360 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.6407, allocations: 3.984 kB / 0.6855 GB, free: 356 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01139/0.652, allocations: 5.615 MB / 0.691 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.319e-05/0.6521, allocations: 8.094 kB / 0.691 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006159/0.6527, allocations: 139.8 kB / 0.6911 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.63e-05/0.6527, allocations: 8 kB / 0.6911 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.144e-05/0.6528, allocations: 24 kB / 0.6911 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.107e-05/0.6528, allocations: 8 kB / 0.6911 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.196e-06/0.6528, allocations: 7.938 kB / 0.6912 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0025/0.6553, allocations: 1.801 MB / 0.6929 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005819/0.6559, allocations: 291.3 kB / 0.6932 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003522/0.6562, allocations: 27.97 kB / 0.6932 GB, free: 8.211 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007191/0.6569, allocations: 39.95 kB / 0.6933 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.6571, allocations: 60.38 kB / 0.6933 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.848e-05/0.6572, allocations: 40 kB / 0.6934 GB, free: 8.074 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003032/0.6602, allocations: 1.556 MB / 0.6949 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.9e-07/0.6602, allocations: 0 / 0.6949 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004076/0.6643, allocations: 1.008 MB / 0.6959 GB, free: 5.492 MB / 0.4981 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.003329/0.6676, allocations: 2.444 MB / 0.6982 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005708/0.6733, allocations: 3.023 MB / 0.7012 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/0.6733, allocations: 0 / 0.7012 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001072/0.6744, allocations: 0.6788 MB / 0.7019 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001953/0.6764, allocations: 265.7 kB / 0.7021 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05182/0.7282, allocations: 29.36 MB / 0.7308 GB, free: 13.85 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005069/0.7332, allocations: 2.969 MB / 0.7337 GB, free: 10.85 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003693/0.7369, allocations: 1.477 MB / 0.7351 GB, free: 9.363 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002593/0.7395, allocations: 1.515 MB / 0.7366 GB, free: 7.848 MB / 0.545 GB Notification: Performance of SimCode: time 7.71e-07/0.7395, allocations: 0 / 0.7366 GB, free: 7.848 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07717/0.8167, allocations: 38.82 MB / 0.7745 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.24/16.06, allocations: 2.656 kB / 0.7745 GB, free: 1.176 MB / 0.5762 GB " [Timeout remaining time 644] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Visualizers_Torus_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 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.mat","/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.mat. Warning: Get data of variable torus1.surface.nu from file ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.mat failed! Error: Could not read variable torus1.surface.nv in file ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.mat. Warning: Get data of variable torus1.surface.nv from file ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.mat failed! Error: Could not read variable torus2.surface.nu in file ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.mat. Warning: Get data of variable torus2.surface.nu from file ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.mat failed! Error: Could not read variable torus2.surface.nv in file ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.mat. Warning: Get data of variable torus2.surface.nv from file ModelicaTest_trunk_ModelicaTest.MultiBody.Visualizers.Torus_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.70727389800595]