Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestMove.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.Rotational.TestMove,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_TestMove",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestMove,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_TestMove",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001066/0.001066, allocations: 200.8 kB / 16.1 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.229/1.229, allocations: 226.5 MB / 243.4 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007423/0.0007424, allocations: 99.7 kB / 295.5 MB, free: 6.625 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2858/0.2858, allocations: 44.83 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002422/0.0002423, allocations: 11.98 kB / 465.4 MB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2603, allocations: 62.95 MB / 0.5159 GB, free: 37.34 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestMove): time 0.00887/0.2692, allocations: 13.01 MB / 0.5286 GB, free: 28.07 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.006213/0.2754, allocations: 4.184 MB / 0.5327 GB, free: 25.26 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001671/0.2771, allocations: 59.22 kB / 0.5328 GB, free: 25.25 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00151/0.2787, allocations: 0.6036 MB / 0.5334 GB, free: 25.03 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004314/0.283, allocations: 2.16 MB / 0.5355 GB, free: 24.16 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.2842, allocations: 481.7 kB / 0.5359 GB, free: 23.99 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002638/0.2868, allocations: 2.823 MB / 0.5387 GB, free: 23.07 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001656/0.2885, allocations: 1.457 MB / 0.5401 GB, free: 22.45 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008997/0.2894, allocations: 0.7113 MB / 0.5408 GB, free: 22.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001409/0.2909, allocations: 1.145 MB / 0.5419 GB, free: 21.91 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002886/0.2912, allocations: 79.25 kB / 0.542 GB, free: 21.91 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001644/0.2928, allocations: 0.918 MB / 0.5429 GB, free: 21.67 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009413/0.2938, allocations: 0.957 MB / 0.5438 GB, free: 21.38 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.2948, allocations: 1.118 MB / 0.5449 GB, free: 20.61 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003711/0.2985, allocations: 3.024 MB / 0.5479 GB, free: 19.85 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.2985, allocations: 0 / 0.5479 GB, free: 19.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2985, allocations: 0 / 0.5479 GB, free: 19.85 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.633e-05/0.2986, allocations: 0 / 0.5479 GB, free: 19.85 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 954 * Number of variables: 954 Notification: Performance of Generate backend data structure: time 0.004976/0.3036, allocations: 2.477 MB / 0.5503 GB, free: 18.03 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.3037, allocations: 9.125 kB / 0.5503 GB, free: 18.03 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007384/0.3044, allocations: 464.2 kB / 0.5508 GB, free: 17.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005762/0.3102, allocations: 1.709 MB / 0.5524 GB, free: 16.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002954/0.3132, allocations: 1.53 MB / 0.5539 GB, free: 15.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.886e-05/0.3133, allocations: 128.3 kB / 0.554 GB, free: 15.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004196/0.3137, allocations: 165.5 kB / 0.5542 GB, free: 15.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008974/0.3227, allocations: 6.453 MB / 0.5605 GB, free: 11.03 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.155e-05/0.3228, allocations: 31.75 kB / 0.5605 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002397/0.3231, allocations: 87.88 kB / 0.5606 GB, free: 10.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0021/0.3252, allocations: 1.437 MB / 0.562 GB, free: 9.473 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008401/0.3336, allocations: 5.716 MB / 0.5676 GB, free: 3.754 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03264/0.3663, allocations: 26.78 MB / 0.5938 GB, free: 8.129 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006107/0.3724, allocations: 2.141 MB / 0.5958 GB, free: 5.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002029/0.3745, allocations: 1.037 MB / 0.5969 GB, free: 4.793 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000259/0.3748, allocations: 174.5 kB / 0.597 GB, free: 4.586 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.33e-05/0.3748, allocations: 46.83 kB / 0.5971 GB, free: 4.531 MB / 410.7 MB Notification: Performance of pre-optimization done (n=100): time 4.769e-06/0.3748, allocations: 0 / 0.5971 GB, free: 4.531 MB / 410.7 MB Notification: Performance of matching and sorting (n=112): time 0.02048/0.3953, allocations: 6.346 MB / 0.6033 GB, free: 14.15 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.089e-05/0.3955, allocations: 144.9 kB / 0.6034 GB, free: 13.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004522/0.4, allocations: 2.882 MB / 0.6062 GB, free: 11.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001708/0.4002, allocations: 41.7 kB / 0.6063 GB, free: 11.04 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001593/0.4018, allocations: 2.106 MB / 0.6083 GB, free: 8.902 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005239/0.4023, allocations: 458.3 kB / 0.6088 GB, free: 8.449 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000305/0.4026, allocations: 84 kB / 0.6088 GB, free: 8.367 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003492/0.403, allocations: 499.8 kB / 0.6093 GB, free: 7.871 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002424/0.4054, allocations: 1.402 MB / 0.6107 GB, free: 6.461 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004191/0.4096, allocations: 4.275 MB / 0.6149 GB, free: 0.7344 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006883/0.4166, allocations: 6.177 MB / 0.6209 GB, free: 9.121 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.134e-05/0.4167, allocations: 32 kB / 0.6209 GB, free: 9.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=577) (initialization): time 0.01058/0.4273, allocations: 5.437 MB / 0.6262 GB, free: 3.648 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001213/0.4274, allocations: 52 kB / 0.6263 GB, free: 3.598 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00014/0.4276, allocations: 100.1 kB / 0.6264 GB, free: 3.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001341/0.4277, allocations: 144 kB / 0.6265 GB, free: 3.359 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004499/0.4322, allocations: 1.228 MB / 0.6277 GB, free: 2.129 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001925/0.4325, allocations: 195.2 kB / 0.6279 GB, free: 1.938 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003084/0.4356, allocations: 239.6 kB / 0.6281 GB, free: 1.703 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007047/0.4363, allocations: 280 kB / 0.6284 GB, free: 1.43 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * Number of states: 0 () * Number of discrete variables: 18 (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],ActuatedRevolute1.cylinderColor[3],ActuatedRevolute1.cylinderColor[2],ActuatedRevolute1.cylinderColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (553): * Single equations (assignments): 550 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002916/0.4392, allocations: 1.384 MB / 0.6297 GB, free: 36 kB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005635/0.4398, allocations: 237 kB / 0.63 GB, free: 15.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002335/0.4421, allocations: 1.245 MB / 0.6312 GB, free: 14.55 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.654e-05/0.4422, allocations: 15.94 kB / 0.6312 GB, free: 14.53 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.906e-06/0.4422, allocations: 0 / 0.6312 GB, free: 14.53 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/0.4422, allocations: 7.984 kB / 0.6312 GB, free: 14.52 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008225/0.4504, allocations: 4.547 MB / 0.6356 GB, free: 9.863 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/0.4505, allocations: 4 kB / 0.6357 GB, free: 9.859 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00182/0.4523, allocations: 367.3 kB / 0.636 GB, free: 9.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-05/0.4523, allocations: 8.531 kB / 0.636 GB, free: 9.492 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.096e-05/0.4524, allocations: 31.94 kB / 0.636 GB, free: 9.461 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.064e-05/0.4525, allocations: 8 kB / 0.636 GB, free: 9.453 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.4525, allocations: 7.938 kB / 0.6361 GB, free: 9.445 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002666/0.4551, allocations: 2.165 MB / 0.6382 GB, free: 7.203 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006184/0.4558, allocations: 306 kB / 0.6385 GB, free: 6.883 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002463/0.456, allocations: 31.97 kB / 0.6385 GB, free: 6.852 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009727/0.457, allocations: 63.86 kB / 0.6386 GB, free: 6.789 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002095/0.4572, allocations: 67.75 kB / 0.6386 GB, free: 6.723 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.573e-05/0.4573, allocations: 35.98 kB / 0.6387 GB, free: 6.688 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002823/0.4602, allocations: 1.811 MB / 0.6404 GB, free: 4.871 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4602, allocations: 4 kB / 0.6404 GB, free: 4.867 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003659/0.4639, allocations: 0.6249 MB / 0.641 GB, free: 4.242 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (90): * Single equations (assignments): 87 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003365/0.4672, allocations: 2.77 MB / 0.6437 GB, free: 1.391 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005367/0.4726, allocations: 3.229 MB / 0.6469 GB, free: 14.18 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/0.4727, allocations: 0 / 0.6469 GB, free: 14.18 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.4737, allocations: 0.7968 MB / 0.6477 GB, free: 13.38 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003346/0.477, allocations: 261.1 kB / 0.6479 GB, free: 13.12 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03633/0.5134, allocations: 21.4 MB / 0.6688 GB, free: 5.02 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002638/0.5161, allocations: 2.218 MB / 0.671 GB, free: 2.773 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001861/0.518, allocations: 1.112 MB / 0.6721 GB, free: 1.66 MB / 490.7 MB Notification: Performance of SimCode: time 1.343e-06/0.518, allocations: 0 / 0.6721 GB, free: 1.66 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.206/5.724, allocations: 45.94 MB / 0.7169 GB, free: 139.4 MB / 0.4948 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestMove.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestMove.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestMove.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestMove.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestMove_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Rotational_TestMove_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Rotational_TestMove.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestMove.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestMove_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestMove/TestMove.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestMove.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches