Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001389/0.001389, allocations: 108.1 kB / 17.33 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001708/0.001708, allocations: 205.8 kB / 18.26 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2373/0.2373, allocations: 46.09 MB / 343.8 MB, free: 11.76 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 77.5 kB / 417.1 MB, free: 20.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1147, allocations: 62.45 MB / 479.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003935/0.1187, allocations: 2.459 MB / 482 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.1204, allocations: 0.9592 MB / 483 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003021/0.1208, allocations: 11.88 kB / 483 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004299/0.1212, allocations: 99.52 kB / 483.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003151/0.1216, allocations: 79.56 kB / 483.2 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006703/0.1222, allocations: 259.7 kB / 483.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007862/0.123, allocations: 0.7095 MB / 484.2 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.1232, allocations: 73.31 kB / 484.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004617/0.1237, allocations: 307 kB / 484.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004579/0.1242, allocations: 334.7 kB / 484.9 MB, free: 248 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001506/0.1243, allocations: 60 kB / 484.9 MB, free: 188 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001149/0.1245, allocations: 63.94 kB / 485 MB, free: 124 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002179/0.1247, allocations: 187.6 kB / 485.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002724/0.125, allocations: 250.7 kB / 485.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005459/0.1255, allocations: 0.5412 MB / 485.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1255, allocations: 8 kB / 486 MB, free: 15.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1255, allocations: 0 / 486 MB, free: 15.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.649e-05/0.1256, allocations: 0 / 486 MB, free: 15.14 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002521/0.1281, allocations: 0.9314 MB / 486.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.1281, allocations: 8.031 kB / 486.9 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001186/0.1283, allocations: 90.66 kB / 487 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.1284, allocations: 64.38 kB / 487 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000525/0.1289, allocations: 375.2 kB / 487.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004351/0.1294, allocations: 263.7 kB / 487.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.68e-05/0.1295, allocations: 40.28 kB / 487.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002036/0.1315, allocations: 0.8202 MB / 488.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.02e-05/0.1316, allocations: 0 / 488.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.15e-05/0.1316, allocations: 16 kB / 488.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.1316, allocations: 8 kB / 488.6 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003541/0.1352, allocations: 1.204 MB / 489.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003061/0.1383, allocations: 2.035 MB / 491.8 MB, free: 9.043 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00299/0.1413, allocations: 0.8309 MB / 492.6 MB, free: 8.199 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001436/0.1427, allocations: 0.4906 MB / 493.1 MB, free: 7.703 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.244e-05/0.1428, allocations: 4 kB / 493.1 MB, free: 7.699 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.318e-05/0.1429, allocations: 42.5 kB / 493.2 MB, free: 7.648 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.716e-06/0.1429, allocations: 4 kB / 493.2 MB, free: 7.645 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.09103/0.2339, allocations: 15.75 MB / 0.497 GB, free: 7.715 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.423e-05/0.234, allocations: 94.17 kB / 0.4971 GB, free: 7.605 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005174/0.2345, allocations: 389.5 kB / 0.4974 GB, free: 7.219 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001923/0.2347, allocations: 41.7 kB / 0.4975 GB, free: 7.172 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000227/0.235, allocations: 225 kB / 0.4977 GB, free: 6.945 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005894/0.2356, allocations: 398.1 kB / 0.4981 GB, free: 6.551 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007369/0.2363, allocations: 202.8 kB / 0.4983 GB, free: 6.344 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00022/0.2366, allocations: 370.8 kB / 0.4986 GB, free: 5.973 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003744/0.2403, allocations: 1.345 MB / 0.4999 GB, free: 4.629 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003746/0.2441, allocations: 1.49 MB / 0.5014 GB, free: 3.094 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006677/0.2508, allocations: 2.449 MB / 0.5038 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.014e-05/0.2508, allocations: 3.938 kB / 0.5038 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.1819/0.4327, allocations: 2.818 MB / 0.5065 GB, free: 43.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.411e-05/0.4328, allocations: 6.969 kB / 0.5065 GB, free: 43.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.717e-05/0.4328, allocations: 5.031 kB / 0.5066 GB, free: 43.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.195e-05/0.4328, allocations: 8.281 kB / 0.5066 GB, free: 43.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00287/0.4357, allocations: 415.7 kB / 0.507 GB, free: 43.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.934e-05/0.4358, allocations: 16.33 kB / 0.507 GB, free: 43.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002015/0.4378, allocations: 214 kB / 0.5072 GB, free: 43.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001586/0.438, allocations: 43.78 kB / 0.5072 GB, free: 43.53 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 10 (kinematicPTP2a.noWphase,kinematicPTP2b.noWphase,kinematicPTP2b.moving[1],kinematicPTP1a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1b.moving[1],integrator3.local_reset,integrator2.local_reset,integrator1.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 148 * Array equations: 0 * 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.0004565/0.4384, allocations: 227.2 kB / 0.5074 GB, free: 43.35 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002203/0.4387, allocations: 66.03 kB / 0.5075 GB, free: 43.35 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002077/0.4389, allocations: 107.6 kB / 0.5076 GB, free: 43.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/0.4389, allocations: 16.75 kB / 0.5076 GB, free: 43.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.4389, allocations: 0 / 0.5076 GB, free: 43.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.381e-05/0.4389, allocations: 7 kB / 0.5076 GB, free: 43.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01062/0.4496, allocations: 5.227 MB / 0.5127 GB, free: 40.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.688e-05/0.4496, allocations: 22.77 kB / 0.5128 GB, free: 40.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001469/0.4511, allocations: 356.9 kB / 0.5131 GB, free: 40.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.611e-05/0.4511, allocations: 28.16 kB / 0.5131 GB, free: 40.81 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.284e-05/0.4512, allocations: 43.23 kB / 0.5132 GB, free: 40.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.921e-05/0.4513, allocations: 40.38 kB / 0.5132 GB, free: 40.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.12e-05/0.4513, allocations: 35.12 kB / 0.5132 GB, free: 40.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006727/0.458, allocations: 3.097 MB / 0.5163 GB, free: 39.03 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003439/0.4584, allocations: 237.8 kB / 0.5165 GB, free: 38.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001318/0.4585, allocations: 48.72 kB / 0.5165 GB, free: 38.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/0.4598, allocations: 194.1 kB / 0.5167 GB, free: 38.83 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004165/0.4602, allocations: 213.4 kB / 0.5169 GB, free: 38.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.236e-05/0.4603, allocations: 56.44 kB / 0.517 GB, free: 38.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002773/0.4606, allocations: 264.5 kB / 0.5172 GB, free: 38.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4606, allocations: 4 kB / 0.5172 GB, free: 38.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009759/0.4616, allocations: 228.1 kB / 0.5174 GB, free: 38.57 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 94 * Number of states: 4 (integrator2.y,integrator3.y,integrator.y,integrator1.y) * Number of discrete variables: 6 (kinematicPTP2b.moving[1],kinematicPTP1b.moving[1],kinematicPTP2b.noWphase,kinematicPTP2a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1a.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 120 * Array equations: 0 * 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.006763/0.4683, allocations: 3.676 MB / 0.521 GB, free: 36.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005947/0.4743, allocations: 2.413 MB / 0.5234 GB, free: 35.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.049e-05/0.4744, allocations: 7.766 kB / 0.5234 GB, free: 35.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003075/0.4774, allocations: 1.062 MB / 0.5244 GB, free: 34.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001288/0.4787, allocations: 157.4 kB / 0.5246 GB, free: 34.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02244/0.5012, allocations: 12.7 MB / 0.537 GB, free: 22.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003255/0.5016, allocations: 0.9242 MB / 0.5379 GB, free: 21.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001243/0.5028, allocations: 208.3 kB / 0.5381 GB, free: 21.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006199/0.5034, allocations: 219.4 kB / 0.5383 GB, free: 21.57 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5034, allocations: 0 / 0.5383 GB, free: 21.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03138/0.5348, allocations: 20.85 MB / 0.5587 GB, free: 0.832 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001905/0.5351, allocations: 190.5 kB / 0.5588 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.42/2.955, allocations: 0 / 0.5588 GB, free: 0.5781 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches