Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 202.8 kB / 16.79 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.377/1.377, allocations: 205.1 MB / 222.6 MB, free: 4.754 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3197/0.3197, allocations: 43.49 MB / 313.5 MB, free: 8.547 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 64.47 kB / 382.1 MB, free: 8.633 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1141, allocations: 57.78 MB / 439.9 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003441/0.1176, allocations: 2.453 MB / 442.4 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.1192, allocations: 0.9756 MB / 443.3 MB, free: 11.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002911/0.1195, allocations: 11.88 kB / 443.3 MB, free: 11.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000408/0.12, allocations: 103.5 kB / 443.4 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003225/0.1203, allocations: 75.58 kB / 443.5 MB, free: 11.11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006689/0.121, allocations: 255.6 kB / 443.8 MB, free: 10.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000685/0.1217, allocations: 0.6822 MB / 444.5 MB, free: 10.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.1219, allocations: 69.27 kB / 444.5 MB, free: 10.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002641/0.1221, allocations: 271 kB / 444.8 MB, free: 9.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003503/0.1225, allocations: 330.6 kB / 445.1 MB, free: 9.516 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.218e-05/0.1226, allocations: 32 kB / 445.1 MB, free: 9.484 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.887e-05/0.1226, allocations: 32 kB / 445.2 MB, free: 9.453 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001633/0.1228, allocations: 167.5 kB / 445.3 MB, free: 9.289 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001851/0.123, allocations: 222.7 kB / 445.5 MB, free: 9.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004084/0.1234, allocations: 0.5139 MB / 446.1 MB, free: 8.555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1234, allocations: 0 / 446.1 MB, free: 8.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 6.82e-07/0.1234, allocations: 0 / 446.1 MB, free: 8.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.1235, allocations: 0 / 446.1 MB, free: 8.555 MB / 382.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.002021/0.1255, allocations: 0.9392 MB / 447 MB, free: 7.566 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.1255, allocations: 8.031 kB / 447 MB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.633e-05/0.1256, allocations: 98.58 kB / 447.1 MB, free: 7.453 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.1257, allocations: 60.38 kB / 447.2 MB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004434/0.1262, allocations: 375.1 kB / 447.5 MB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003188/0.1265, allocations: 267.7 kB / 447.8 MB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.053e-05/0.1266, allocations: 44.38 kB / 447.8 MB, free: 6.648 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001836/0.1285, allocations: 0.8046 MB / 448.6 MB, free: 5.801 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.1285, allocations: 7.938 kB / 448.6 MB, free: 5.793 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.529e-05/0.1285, allocations: 16 kB / 448.7 MB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.417e-06/0.1286, allocations: 12 kB / 448.7 MB, free: 5.766 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00318/0.1317, allocations: 1.196 MB / 449.9 MB, free: 4.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002469/0.1342, allocations: 2.039 MB / 451.9 MB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002675/0.1369, allocations: 0.8363 MB / 452.7 MB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001297/0.1382, allocations: 494.4 kB / 453.2 MB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.764e-05/0.1383, allocations: 11.98 kB / 453.2 MB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.1383, allocations: 46.5 kB / 453.3 MB, free: 1.035 MB / 382.1 MB Notification: Performance of pre-optimization done (n=64): time 1.804e-06/0.1384, allocations: 4 kB / 453.3 MB, free: 1.031 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.2877/0.426, allocations: 15.74 MB / 469 MB, free: 47.26 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/0.4261, allocations: 91.11 kB / 469.1 MB, free: 47.17 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004305/0.4266, allocations: 383.1 kB / 469.5 MB, free: 46.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001306/0.4267, allocations: 44.86 kB / 469.5 MB, free: 46.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.4269, allocations: 224.2 kB / 469.8 MB, free: 46.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003196/0.4272, allocations: 399 kB / 470.2 MB, free: 46.44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005184/0.4277, allocations: 200.3 kB / 470.3 MB, free: 46.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.664e-05/0.4278, allocations: 371.9 kB / 470.7 MB, free: 46.01 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002945/0.4308, allocations: 1.347 MB / 472.1 MB, free: 45.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003028/0.4338, allocations: 1.491 MB / 473.5 MB, free: 44.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005293/0.4391, allocations: 2.446 MB / 476 MB, free: 43.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.4391, allocations: 5.312 kB / 476 MB, free: 43.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.006448/0.4456, allocations: 2.833 MB / 478.8 MB, free: 42.76 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.4456, allocations: 5.844 kB / 478.8 MB, free: 42.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.4456, allocations: 2.906 kB / 478.8 MB, free: 42.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.4456, allocations: 9.484 kB / 478.8 MB, free: 42.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002566/0.4482, allocations: 406.1 kB / 479.2 MB, free: 42.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.026e-05/0.4482, allocations: 13.45 kB / 479.3 MB, free: 42.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/0.4501, allocations: 217.1 kB / 479.5 MB, free: 42.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001485/0.4503, allocations: 43.14 kB / 479.5 MB, free: 42.71 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.0004134/0.4507, allocations: 240.2 kB / 479.7 MB, free: 42.53 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002064/0.4509, allocations: 66.38 kB / 479.8 MB, free: 42.49 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001839/0.4511, allocations: 108.4 kB / 479.9 MB, free: 42.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.258e-06/0.4511, allocations: 11.75 kB / 479.9 MB, free: 42.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-05/0.4511, allocations: 1.797 kB / 479.9 MB, free: 42.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.4511, allocations: 10.05 kB / 479.9 MB, free: 42.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/0.4613, allocations: 5.228 MB / 485.2 MB, free: 40.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.45e-05/0.4614, allocations: 24.31 kB / 485.2 MB, free: 40.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/0.4627, allocations: 353.8 kB / 485.5 MB, free: 39.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.028e-05/0.4628, allocations: 32.19 kB / 485.6 MB, free: 39.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.054e-05/0.4629, allocations: 46.83 kB / 485.6 MB, free: 39.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.123e-05/0.4629, allocations: 44.36 kB / 485.7 MB, free: 39.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.022e-05/0.4629, allocations: 31.59 kB / 485.7 MB, free: 39.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006053/0.469, allocations: 3.086 MB / 488.8 MB, free: 38.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004003/0.4694, allocations: 237.8 kB / 489 MB, free: 38.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/0.4696, allocations: 55.23 kB / 489.1 MB, free: 38.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001195/0.4708, allocations: 195.3 kB / 489.3 MB, free: 38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000439/0.4712, allocations: 209.9 kB / 489.5 MB, free: 37.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001/0.4713, allocations: 56.14 kB / 489.5 MB, free: 37.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003183/0.4717, allocations: 265.2 kB / 489.8 MB, free: 37.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.91e-07/0.4717, allocations: 0 / 489.8 MB, free: 37.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001057/0.4727, allocations: 237 kB / 490 MB, free: 37.74 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.0066/0.4793, allocations: 3.685 MB / 493.7 MB, free: 35.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006129/0.4855, allocations: 2.339 MB / 496 MB, free: 34.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.44e-05/0.4855, allocations: 2.156 kB / 496 MB, free: 34.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003295/0.4888, allocations: 1.072 MB / 497.1 MB, free: 34.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001659/0.4905, allocations: 147.9 kB / 497.2 MB, free: 34.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0216/0.5121, allocations: 12.7 MB / 0.498 GB, free: 24.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003053/0.5125, allocations: 0.9321 MB / 0.4989 GB, free: 23.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001164/0.5136, allocations: 195.4 kB / 0.4991 GB, free: 23.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000643/0.5143, allocations: 215.9 kB / 0.4993 GB, free: 23.11 MB / 382.1 MB Notification: Performance of SimCode: time 9.12e-07/0.5143, allocations: 4 kB / 0.4993 GB, free: 23.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02963/0.5439, allocations: 20.12 MB / 0.5189 GB, free: 3.043 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000151/0.5441, allocations: 180.8 kB / 0.5191 GB, free: 2.793 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.2/2.744, allocations: 0 / 0.5191 GB, free: 2.793 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches