Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevoluteInitialization,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_RevoluteInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001113/0.001113, allocations: 195.7 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 226.5 MB / 243.4 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006647/0.0006648, allocations: 102.1 kB / 295.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2933/0.2933, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002603/0.0002603, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.3319, allocations: 62.95 MB / 0.516 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevoluteInitialization): time 0.0229/0.3549, allocations: 31.45 MB / 0.5467 GB, free: 14.64 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01757/0.3725, allocations: 7.45 MB / 0.5539 GB, free: 9.574 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007969/0.3805, allocations: 150.1 kB / 0.5541 GB, free: 9.547 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006088/0.3867, allocations: 1.576 MB / 0.5556 GB, free: 8.984 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0167/0.4034, allocations: 4.868 MB / 0.5604 GB, free: 6.961 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003141/0.4066, allocations: 0.542 MB / 0.5609 GB, free: 6.754 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0069/0.4135, allocations: 3.86 MB / 0.5647 GB, free: 5.195 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006/0.4195, allocations: 3.174 MB / 0.5678 GB, free: 3.328 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002796/0.4224, allocations: 1.047 MB / 0.5688 GB, free: 2.809 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003118/0.4255, allocations: 1.592 MB / 0.5703 GB, free: 1.547 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008455/0.4264, allocations: 116 kB / 0.5705 GB, free: 1.434 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002408/0.4288, allocations: 0.9243 MB / 0.5714 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002152/0.431, allocations: 1.391 MB / 0.5727 GB, free: 15.11 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002958/0.434, allocations: 1.586 MB / 0.5743 GB, free: 13.51 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005703/0.4397, allocations: 4.435 MB / 0.5786 GB, free: 9.066 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.4398, allocations: 0 / 0.5786 GB, free: 9.066 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.4398, allocations: 0 / 0.5786 GB, free: 9.066 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000182/0.44, allocations: 4 kB / 0.5786 GB, free: 9.062 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.007085/0.447, allocations: 3.32 MB / 0.5818 GB, free: 5.676 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.4471, allocations: 16.03 kB / 0.5819 GB, free: 5.66 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001221/0.4483, allocations: 0.6082 MB / 0.5825 GB, free: 5.043 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006118/0.4545, allocations: 1.837 MB / 0.5842 GB, free: 3.199 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00424/0.4588, allocations: 2.119 MB / 0.5863 GB, free: 1.02 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000154/0.4589, allocations: 193 kB / 0.5865 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005806/0.4595, allocations: 255.8 kB / 0.5867 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01413/0.4737, allocations: 8.42 MB / 0.595 GB, free: 7.488 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001399/0.4738, allocations: 43.59 kB / 0.595 GB, free: 7.445 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003462/0.4742, allocations: 127.8 kB / 0.5951 GB, free: 7.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002718/0.4769, allocations: 1.707 MB / 0.5968 GB, free: 5.613 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01283/0.4898, allocations: 7.063 MB / 0.6037 GB, free: 14.54 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03775/0.5276, allocations: 34.16 MB / 0.6371 GB, free: 11.38 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007046/0.5346, allocations: 3.26 MB / 0.6402 GB, free: 7.969 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001938/0.5366, allocations: 1.457 MB / 0.6417 GB, free: 6.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006747/0.5434, allocations: 4.369 MB / 0.6459 GB, free: 1.922 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.844e-05/0.5435, allocations: 43.12 kB / 0.646 GB, free: 1.871 MB / 458.7 MB Notification: Performance of pre-optimization done (n=121): time 5.37e-06/0.5435, allocations: 0 / 0.646 GB, free: 1.871 MB / 458.7 MB Notification: Performance of matching and sorting (n=129): time 0.0276/0.5711, allocations: 11.49 MB / 0.6572 GB, free: 6.23 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.427e-05/0.5712, allocations: 170.9 kB / 0.6574 GB, free: 6.027 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005098/0.5763, allocations: 3.71 MB / 0.661 GB, free: 2.324 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002472/0.5766, allocations: 41.7 kB / 0.661 GB, free: 2.277 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001882/0.5785, allocations: 2.748 MB / 0.6637 GB, free: 15.49 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000647/0.5792, allocations: 0.5209 MB / 0.6642 GB, free: 14.96 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002134/0.5794, allocations: 108 kB / 0.6643 GB, free: 14.86 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000319/0.5797, allocations: 0.5369 MB / 0.6648 GB, free: 14.31 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00257/0.5823, allocations: 1.67 MB / 0.6665 GB, free: 12.64 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005088/0.5874, allocations: 5.1 MB / 0.6715 GB, free: 5.809 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2526/0.8401, allocations: 7.379 MB / 0.6787 GB, free: 124.4 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001844/0.8403, allocations: 36.03 kB / 0.6787 GB, free: 124.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01214/0.8525, allocations: 6.651 MB / 0.6852 GB, free: 122.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001332/0.8527, allocations: 62 kB / 0.6852 GB, free: 122.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002363/0.8529, allocations: 120.1 kB / 0.6854 GB, free: 122.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00063/0.8535, allocations: 329.4 kB / 0.6857 GB, free: 122.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003686/0.8572, allocations: 1.239 MB / 0.6869 GB, free: 122 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002023/0.8593, allocations: 2.279 MB / 0.6891 GB, free: 120.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003595/0.8629, allocations: 291 kB / 0.6894 GB, free: 120.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007046/0.8636, allocations: 334.9 kB / 0.6897 GB, free: 120.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 660 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003225/0.8669, allocations: 1.791 MB / 0.6915 GB, free: 119.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006597/0.8675, allocations: 312.3 kB / 0.6918 GB, free: 119.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004815/0.8724, allocations: 2.36 MB / 0.6941 GB, free: 118.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.051e-05/0.8724, allocations: 18.72 kB / 0.6941 GB, free: 118.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/0.8724, allocations: 7.406 kB / 0.6941 GB, free: 118.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.512e-05/0.8724, allocations: 9.078 kB / 0.6941 GB, free: 118.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01274/0.8852, allocations: 5.903 MB / 0.6999 GB, free: 116.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-05/0.8853, allocations: 1.094 kB / 0.6999 GB, free: 116.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008319/0.8861, allocations: 174.8 kB / 0.7 GB, free: 116.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002321/0.8884, allocations: 0.7195 MB / 0.7007 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001524/0.8886, allocations: 22.56 kB / 0.7007 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005864/0.8945, allocations: 4.467 MB / 0.7051 GB, free: 113.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.8945, allocations: 2.781 kB / 0.7051 GB, free: 113.9 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007434/0.902, allocations: 4.319 MB / 0.7093 GB, free: 112.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000982/0.903, allocations: 371.9 kB / 0.7097 GB, free: 111.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006246/0.9036, allocations: 26.16 kB / 0.7097 GB, free: 111.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001403/0.9051, allocations: 70.45 kB / 0.7098 GB, free: 111.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003104/0.9054, allocations: 68.12 kB / 0.7098 GB, free: 111.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.9055, allocations: 36.55 kB / 0.7099 GB, free: 111.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004854/0.9104, allocations: 2.307 MB / 0.7121 GB, free: 111.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.9104, allocations: 0 / 0.7121 GB, free: 111.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005103/0.9155, allocations: 0.825 MB / 0.7129 GB, free: 111 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (96): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007275/0.9228, allocations: 4.949 MB / 0.7178 GB, free: 108.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006006/0.9288, allocations: 3.987 MB / 0.7217 GB, free: 107.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.175e-06/0.9289, allocations: 0 / 0.7217 GB, free: 107.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001502/0.9304, allocations: 1.102 MB / 0.7227 GB, free: 106.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003363/0.9338, allocations: 375.5 kB / 0.7231 GB, free: 106.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04486/0.9787, allocations: 28.44 MB / 0.7509 GB, free: 76.54 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003377/0.9821, allocations: 2.793 MB / 0.7536 GB, free: 73.71 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002136/0.9843, allocations: 1.571 MB / 0.7551 GB, free: 72.15 MB / 490.7 MB Notification: Performance of SimCode: time 7.12e-07/0.9843, allocations: 0 / 0.7551 GB, free: 72.15 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.351/7.335, allocations: 76.98 MB / 0.8303 GB, free: 11.15 MB / 0.4948 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_RevoluteInitialization_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_RevoluteInitialization.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/RevoluteInitialization/RevoluteInitialization.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevoluteInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches