Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove.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.PlanarLoopWithMove,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_PlanarLoopWithMove",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.PlanarLoopWithMove,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_PlanarLoopWithMove",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001199/0.0012, allocations: 201.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.265/1.265, allocations: 226.5 MB / 243.4 MB, free: 6.367 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007544/0.0007544, allocations: 93.39 kB / 295.5 MB, free: 6.652 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3138/0.3138, allocations: 44.82 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002493/0.0002494, allocations: 8 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2818, allocations: 62.96 MB / 0.5159 GB, free: 37.07 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.PlanarLoopWithMove): time 0.02842/0.3103, allocations: 42.56 MB / 0.5575 GB, free: 6.68 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0215/0.3318, allocations: 9.949 MB / 0.5672 GB, free: 15.91 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008928/0.3408, allocations: 210.8 kB / 0.5674 GB, free: 15.88 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007706/0.3486, allocations: 2.316 MB / 0.5697 GB, free: 15.08 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01964/0.3682, allocations: 6.624 MB / 0.5762 GB, free: 11.5 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003992/0.3723, allocations: 0.8031 MB / 0.5769 GB, free: 10.72 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.007771/0.38, allocations: 4.789 MB / 0.5816 GB, free: 5.926 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005723/0.3858, allocations: 4.15 MB / 0.5857 GB, free: 1.703 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002598/0.3884, allocations: 1.518 MB / 0.5871 GB, free: 184 kB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002638/0.3911, allocations: 2.052 MB / 0.5892 GB, free: 14.12 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005821/0.3917, allocations: 140 kB / 0.5893 GB, free: 13.98 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002118/0.3938, allocations: 1.08 MB / 0.5903 GB, free: 12.9 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001554/0.3954, allocations: 1.745 MB / 0.592 GB, free: 11.15 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001907/0.3973, allocations: 1.982 MB / 0.594 GB, free: 9.152 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005457/0.4028, allocations: 5.436 MB / 0.5993 GB, free: 3.703 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.4028, allocations: 0 / 0.5993 GB, free: 3.703 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.4028, allocations: 0 / 0.5993 GB, free: 3.703 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001996/0.403, allocations: 4 kB / 0.5993 GB, free: 3.699 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1597 * Number of variables: 1597 Notification: Performance of Generate backend data structure: time 0.009193/0.4122, allocations: 4.457 MB / 0.6036 GB, free: 15.17 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.4123, allocations: 15.97 kB / 0.6037 GB, free: 15.15 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001635/0.4139, allocations: 0.7491 MB / 0.6044 GB, free: 14.39 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006321/0.4203, allocations: 1.936 MB / 0.6063 GB, free: 12.45 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005068/0.4254, allocations: 2.707 MB / 0.6089 GB, free: 9.68 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001742/0.4256, allocations: 234 kB / 0.6092 GB, free: 9.449 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006491/0.4262, allocations: 315.8 kB / 0.6095 GB, free: 9.141 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01907/0.4453, allocations: 11.19 MB / 0.6204 GB, free: 13.2 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001046/0.4455, allocations: 47.53 kB / 0.6204 GB, free: 13.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000388/0.4459, allocations: 151.8 kB / 0.6206 GB, free: 13.01 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003676/0.4495, allocations: 2.302 MB / 0.6228 GB, free: 10.7 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01771/0.4673, allocations: 9.839 MB / 0.6324 GB, free: 0.8398 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05123/0.5186, allocations: 44.31 MB / 0.6757 GB, free: 3.305 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2437/0.7623, allocations: 5.851 MB / 0.6814 GB, free: 130.5 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003204/0.7655, allocations: 3.24 MB / 0.6846 GB, free: 129.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01104/0.7766, allocations: 9.353 MB / 0.6937 GB, free: 124.4 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008985/0.7856, allocations: 3.369 MB / 0.697 GB, free: 123.6 MB / 490.7 MB Notification: Performance of pre-optimization done (n=211): time 6.873e-06/0.7857, allocations: 2.656 kB / 0.697 GB, free: 123.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=285): time 0.1068/0.8925, allocations: 33.53 MB / 0.7297 GB, free: 109.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.586e-05/0.8926, allocations: 166.5 kB / 0.7299 GB, free: 109 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004478/0.8971, allocations: 4.183 MB / 0.734 GB, free: 104.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005316/0.8977, allocations: 66.41 kB / 0.7341 GB, free: 104.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001765/0.8994, allocations: 3.248 MB / 0.7372 GB, free: 101.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009563/0.9004, allocations: 1.049 MB / 0.7383 GB, free: 100.4 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003255/0.9007, allocations: 132 kB / 0.7384 GB, free: 100.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002346/0.901, allocations: 0.5869 MB / 0.739 GB, free: 99.66 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003736/0.9047, allocations: 3.343 MB / 0.7422 GB, free: 96.32 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004755/0.9095, allocations: 6.95 MB / 0.749 GB, free: 87.61 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009537/0.919, allocations: 11.14 MB / 0.7599 GB, free: 74.71 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.674e-05/0.9191, allocations: 40 kB / 0.7599 GB, free: 74.67 MB / 490.7 MB Notification: Performance of matching and sorting (n=859) (initialization): time 0.01941/0.9386, allocations: 12.52 MB / 0.7721 GB, free: 62.13 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.974e-05/0.9387, allocations: 60 kB / 0.7722 GB, free: 62.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.365e-05/0.9388, allocations: 132.1 kB / 0.7723 GB, free: 61.95 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006244/0.945, allocations: 2.642 MB / 0.7749 GB, free: 59.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004584/0.9496, allocations: 1.474 MB / 0.7763 GB, free: 57.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02192/0.9716, allocations: 21.59 MB / 0.7974 GB, free: 35.71 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005057/0.9767, allocations: 427.4 kB / 0.7978 GB, free: 35.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009331/0.9776, allocations: 389.1 kB / 0.7982 GB, free: 34.92 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 571 * Number of states: 0 () * Number of discrete variables: 47 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled,rod3.color[3],rod3.color[2],rod3.color[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],rod2.color[3],rod2.color[2],rod2.color[1],rod1.color[3],rod1.color[2],rod1.color[1],r4.cylinderColor[3],r4.cylinderColor[2],r4.cylinderColor[1],r3.cylinderColor[3],r3.cylinderColor[2],r3.cylinderColor[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.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 (760): * Single equations (assignments): 753 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 16,(2,100.0%) 14,(3,88.9%) 13} * Non-linear torn systems: 1 {2 27} Notification: Performance of prepare postOptimizeDAE: time 0.003441/0.9811, allocations: 2.225 MB / 0.8004 GB, free: 32.68 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006541/0.9817, allocations: 402.8 kB / 0.8008 GB, free: 32.28 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0123/0.994, allocations: 8.008 MB / 0.8086 GB, free: 24.24 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.121e-05/0.9941, allocations: 28.62 kB / 0.8086 GB, free: 24.21 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.922e-05/0.9942, allocations: 16 kB / 0.8086 GB, free: 24.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.553e-05/0.9942, allocations: 11.95 kB / 0.8086 GB, free: 24.19 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0231/1.017, allocations: 14.79 MB / 0.8231 GB, free: 9.352 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.449e-05/1.017, allocations: 0 / 0.8231 GB, free: 9.352 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002104/1.02, allocations: 399.3 kB / 0.8235 GB, free: 8.961 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005757/1.025, allocations: 2.437 MB / 0.8258 GB, free: 6.512 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004532/1.026, allocations: 48 kB / 0.8259 GB, free: 6.465 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02634/1.052, allocations: 21.35 MB / 0.8467 GB, free: 0.5898 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.248e-06/1.052, allocations: 11.88 kB / 0.8467 GB, free: 0.5781 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01547/1.068, allocations: 8.101 MB / 0.8547 GB, free: 8.363 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001193/1.069, allocations: 451.8 kB / 0.8551 GB, free: 7.898 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001063/1.07, allocations: 48 kB / 0.8551 GB, free: 7.852 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002588/1.073, allocations: 215.7 kB / 0.8553 GB, free: 7.641 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001045/1.074, allocations: 193.7 kB / 0.8555 GB, free: 7.449 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003306/1.074, allocations: 75.98 kB / 0.8556 GB, free: 7.375 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004029/1.078, allocations: 2.61 MB / 0.8581 GB, free: 4.758 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.2e-07/1.078, allocations: 0 / 0.8581 GB, free: 4.758 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005494/1.083, allocations: 1.357 MB / 0.8595 GB, free: 3.406 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (188): * Single equations (assignments): 179 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 16,(3,88.9%) 13,(3,88.9%) 13} * Non-linear torn systems: 1 {2 31} Notification: Performance of Backend phase and start with SimCode phase: time 0.01524/1.099, allocations: 9.085 MB / 0.8683 GB, free: 10.36 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.223/1.322, allocations: 8.825 MB / 0.877 GB, free: 165.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/1.322, allocations: 3.172 kB / 0.877 GB, free: 165.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005837/1.328, allocations: 4.068 MB / 0.8809 GB, free: 165 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003835/1.332, allocations: 472.8 kB / 0.8814 GB, free: 164.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07449/1.406, allocations: 46.54 MB / 0.9268 GB, free: 136.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003599/1.41, allocations: 3.581 MB / 0.9303 GB, free: 135.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00278/1.413, allocations: 2.125 MB / 0.9324 GB, free: 133.9 MB / 0.5261 GB Notification: Performance of SimCode: time 9.02e-07/1.413, allocations: 3.562 kB / 0.9324 GB, free: 133.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.002/10.41, allocations: 165.4 MB / 1.094 GB, free: 173.8 MB / 0.5417 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_PlanarLoopWithMove_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_PlanarLoopWithMove.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/PlanarLoopWithMove/PlanarLoopWithMove.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches