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.001712/0.001712, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.002318/0.002318, allocations: 208 kB / 24.52 MB, free: 4.07 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.512/1.512, allocations: 230.5 MB / 258.2 MB, free: 7.988 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.2433/0.2433, allocations: 46.93 MB / 361.6 MB, free: 4.152 MB / 286.1 MB " [Timeout remaining time 179] 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.002402/0.002402, allocations: 79.88 kB / 0.497 GB, free: 7.746 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3776/0.38, allocations: 66.08 MB / 0.5615 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Visualizers.Torus): time 0.01392/0.3939, allocations: 11.31 MB / 0.5725 GB, free: 8.91 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.006925/0.4008, allocations: 2.847 MB / 0.5753 GB, free: 6.055 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001753/0.4026, allocations: 59.81 kB / 0.5754 GB, free: 5.996 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002944/0.4055, allocations: 1.354 MB / 0.5767 GB, free: 4.637 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003376/0.4089, allocations: 1.253 MB / 0.5779 GB, free: 3.379 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004399/0.4094, allocations: 87.84 kB / 0.578 GB, free: 3.293 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004349/0.4137, allocations: 2.716 MB / 0.5807 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002395/0.4161, allocations: 1.675 MB / 0.5823 GB, free: 14.86 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001997/0.4181, allocations: 1.055 MB / 0.5833 GB, free: 13.8 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002687/0.4208, allocations: 1.6 MB / 0.5849 GB, free: 12.2 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005477/0.4213, allocations: 212 kB / 0.5851 GB, free: 11.99 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001203/0.4225, allocations: 0.5032 MB / 0.5856 GB, free: 11.48 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001702/0.4242, allocations: 1.441 MB / 0.587 GB, free: 10.04 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002151/0.4264, allocations: 1.692 MB / 0.5886 GB, free: 8.336 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007974/0.4344, allocations: 5.456 MB / 0.594 GB, free: 2.855 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.4344, allocations: 11.94 kB / 0.594 GB, free: 2.844 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4344, allocations: 3.938 kB / 0.594 GB, free: 2.84 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002759/0.4346, allocations: 0 / 0.594 GB, free: 2.84 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.01046/0.4451, allocations: 3.595 MB / 0.5975 GB, free: 15.19 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.736e-05/0.4452, allocations: 12.03 kB / 0.5975 GB, free: 15.18 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001542/0.4453, allocations: 88.56 kB / 0.5976 GB, free: 15.09 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001465/0.4468, allocations: 0.6632 MB / 0.5982 GB, free: 14.41 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01067/0.4574, allocations: 2.962 MB / 0.6011 GB, free: 11.45 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004297/0.4617, allocations: 1.476 MB / 0.6026 GB, free: 9.938 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002025/0.4619, allocations: 173.8 kB / 0.6027 GB, free: 9.766 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009083/0.4629, allocations: 223.8 kB / 0.6029 GB, free: 9.547 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01827/0.4811, allocations: 9.468 MB / 0.6122 GB, free: 15.69 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.048e-05/0.4812, allocations: 15.81 kB / 0.6122 GB, free: 15.67 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004576/0.4817, allocations: 111.8 kB / 0.6123 GB, free: 15.56 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005058/0.4867, allocations: 2.381 MB / 0.6146 GB, free: 13.18 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01981/0.5065, allocations: 8.667 MB / 0.6231 GB, free: 4.504 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04724/0.5538, allocations: 29.06 MB / 0.6515 GB, free: 6.629 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004602/0.5584, allocations: 2.04 MB / 0.6535 GB, free: 4.586 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001479/0.5598, allocations: 0.9023 MB / 0.6544 GB, free: 3.684 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008789/0.5686, allocations: 3.95 MB / 0.6582 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.106e-05/0.5687, allocations: 47.22 kB / 0.6583 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=126): time 4.599e-06/0.5687, allocations: 0 / 0.6583 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of matching and sorting (n=126): time 0.006539/0.5752, allocations: 2.749 MB / 0.6609 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/0.5753, allocations: 60.06 kB / 0.661 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004259/0.5795, allocations: 2.573 MB / 0.6635 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001565/0.5797, allocations: 37.7 kB / 0.6635 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002488/0.5822, allocations: 2.755 MB / 0.6662 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000712/0.5829, allocations: 0.5078 MB / 0.6667 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001331/0.5842, allocations: 0.913 MB / 0.6676 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000221/0.5844, allocations: 357.9 kB / 0.668 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002242/0.5867, allocations: 1.352 MB / 0.6693 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005242/0.5919, allocations: 4.118 MB / 0.6733 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008392/0.6003, allocations: 5.96 MB / 0.6791 GB, free: 7.402 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000106/0.6004, allocations: 32 kB / 0.6792 GB, free: 7.371 MB / 0.5137 GB Notification: Performance of matching and sorting (n=588) (initialization): time 0.01041/0.6108, allocations: 5.295 MB / 0.6843 GB, free: 2.07 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.559e-05/0.6109, allocations: 44 kB / 0.6844 GB, free: 2.027 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000142/0.6111, allocations: 108 kB / 0.6845 GB, free: 1.922 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001426/0.6112, allocations: 128 kB / 0.6846 GB, free: 1.797 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003/0.6142, allocations: 0.9715 MB / 0.6855 GB, free: 0.8242 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001629/0.6144, allocations: 191.2 kB / 0.6857 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003161/0.6175, allocations: 0.6282 MB / 0.6863 GB, free: 4 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005151/0.6181, allocations: 272 kB / 0.6866 GB, free: 15.74 MB / 0.5294 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.003309/0.6214, allocations: 1.897 MB / 0.6885 GB, free: 13.83 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003973/0.6218, allocations: 226.5 kB / 0.6887 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005252/0.6223, allocations: 271.3 kB / 0.6889 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.994e-05/0.6223, allocations: 23.98 kB / 0.6889 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.6223, allocations: 0 / 0.6889 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.6223, allocations: 3.984 kB / 0.689 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00979/0.6321, allocations: 5.59 MB / 0.6944 GB, free: 7.602 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/0.6321, allocations: 8.062 kB / 0.6944 GB, free: 7.594 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005913/0.6327, allocations: 135.8 kB / 0.6945 GB, free: 7.461 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.307e-05/0.6328, allocations: 8 kB / 0.6946 GB, free: 7.453 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.165e-05/0.6328, allocations: 20 kB / 0.6946 GB, free: 7.434 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.528e-05/0.6328, allocations: 11.92 kB / 0.6946 GB, free: 7.422 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.004e-06/0.6328, allocations: 8 kB / 0.6946 GB, free: 7.414 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002674/0.6355, allocations: 1.797 MB / 0.6963 GB, free: 5.539 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006062/0.6361, allocations: 222.2 kB / 0.6966 GB, free: 5.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000233/0.6364, allocations: 16 kB / 0.6966 GB, free: 5.305 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005896/0.6369, allocations: 39.95 kB / 0.6966 GB, free: 5.266 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.6371, allocations: 64.28 kB / 0.6967 GB, free: 5.203 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.404e-05/0.6372, allocations: 43.97 kB / 0.6967 GB, free: 5.16 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002658/0.6398, allocations: 1.556 MB / 0.6982 GB, free: 3.59 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6398, allocations: 3.938 kB / 0.6982 GB, free: 3.586 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00408/0.6439, allocations: 1.004 MB / 0.6992 GB, free: 2.578 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.003215/0.6471, allocations: 2.441 MB / 0.7016 GB, free: 56 kB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00549/0.6526, allocations: 3.022 MB / 0.7046 GB, free: 13.05 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/0.6526, allocations: 0 / 0.7046 GB, free: 13.05 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0011/0.6537, allocations: 0.6824 MB / 0.7052 GB, free: 12.38 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001715/0.6554, allocations: 257.3 kB / 0.7055 GB, free: 12.13 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3393/0.9947, allocations: 29.37 MB / 0.7342 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002851/0.9976, allocations: 2.967 MB / 0.7371 GB, free: 155.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002805/1, allocations: 1.48 MB / 0.7385 GB, free: 155.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001816/1.002, allocations: 1.516 MB / 0.74 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of SimCode: time 9.42e-07/1.002, allocations: 0 / 0.74 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07007/1.072, allocations: 42.55 MB / 0.7815 GB, free: 114.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.26/19.33, allocations: 3.938 kB / 0.7815 GB, free: 114.7 MB / 0.5606 GB " [Timeout remaining time 640] (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: 23.086931649013422]