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.0009757/0.0009757, allocations: 106.1 kB / 15.98 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 191.7 kB / 16.9 MB, free: 6.191 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.251/1.251, allocations: 205.1 MB / 222.8 MB, free: 4.711 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.2728/0.2728, allocations: 43.49 MB / 313.6 MB, free: 8.281 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.001294/0.001294, allocations: 67.91 kB / 382.3 MB, free: 8.277 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08734/0.08864, allocations: 57.78 MB / 440.1 MB, free: 14.4 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003061/0.09173, allocations: 2.445 MB / 442.5 MB, free: 11.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.09306, allocations: 0.9757 MB / 443.5 MB, free: 10.95 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.09319, allocations: 7.938 kB / 443.5 MB, free: 10.94 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002929/0.09349, allocations: 103.4 kB / 443.6 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001832/0.0937, allocations: 79.56 kB / 443.7 MB, free: 10.76 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004744/0.09418, allocations: 263.6 kB / 444 MB, free: 10.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005933/0.09478, allocations: 0.7212 MB / 444.7 MB, free: 9.781 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.09493, allocations: 77.25 kB / 444.8 MB, free: 9.703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002659/0.09521, allocations: 307 kB / 445.1 MB, free: 9.402 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003172/0.09553, allocations: 338.7 kB / 445.4 MB, free: 9.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.707e-05/0.09562, allocations: 60 kB / 445.4 MB, free: 9.012 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.202e-05/0.09569, allocations: 63.94 kB / 445.5 MB, free: 8.949 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001599/0.09586, allocations: 199.5 kB / 445.7 MB, free: 8.754 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001849/0.09605, allocations: 250.7 kB / 445.9 MB, free: 8.508 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000422/0.09648, allocations: 0.5412 MB / 446.5 MB, free: 7.965 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.09649, allocations: 0 / 446.5 MB, free: 7.965 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.0965, allocations: 0 / 446.5 MB, free: 7.965 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.09651, allocations: 0 / 446.5 MB, free: 7.965 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.001968/0.09848, allocations: 0.9392 MB / 447.4 MB, free: 6.977 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.09852, allocations: 11.89 kB / 447.4 MB, free: 6.965 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.745e-05/0.09863, allocations: 86.72 kB / 447.5 MB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.09874, allocations: 68.31 kB / 447.6 MB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004016/0.09914, allocations: 383 kB / 448 MB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003114/0.09946, allocations: 263.7 kB / 448.2 MB, free: 6.098 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.312e-05/0.09956, allocations: 44.38 kB / 448.3 MB, free: 6.055 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001811/0.1014, allocations: 0.8085 MB / 449.1 MB, free: 5.203 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.1014, allocations: 3.938 kB / 449.1 MB, free: 5.199 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.422e-05/0.1015, allocations: 16 kB / 449.1 MB, free: 5.184 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.1015, allocations: 12 kB / 449.1 MB, free: 5.172 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003215/0.1047, allocations: 1.196 MB / 450.3 MB, free: 3.977 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0024/0.1071, allocations: 2.043 MB / 452.3 MB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002756/0.1099, allocations: 0.8285 MB / 453.2 MB, free: 1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001368/0.1113, allocations: 494.4 kB / 453.7 MB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.81e-05/0.1113, allocations: 15.97 kB / 453.7 MB, free: 0.4961 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.1114, allocations: 50.48 kB / 453.7 MB, free: 448 kB / 382.1 MB Notification: Performance of pre-optimization done (n=64): time 1.944e-06/0.1114, allocations: 0 / 453.7 MB, free: 448 kB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.2203/0.3317, allocations: 15.73 MB / 469.5 MB, free: 47.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/0.3318, allocations: 98.62 kB / 469.6 MB, free: 47.35 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000355/0.3322, allocations: 385.4 kB / 469.9 MB, free: 47.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001469/0.3323, allocations: 48.48 kB / 470 MB, free: 47.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.071e-05/0.3324, allocations: 227.1 kB / 470.2 MB, free: 46.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002796/0.3327, allocations: 391.3 kB / 470.6 MB, free: 46.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005074/0.3332, allocations: 199.3 kB / 470.8 MB, free: 46.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.372e-05/0.3333, allocations: 368.3 kB / 471.1 MB, free: 46.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002968/0.3363, allocations: 1.348 MB / 472.5 MB, free: 45.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003002/0.3393, allocations: 1.495 MB / 474 MB, free: 45.05 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00557/0.3449, allocations: 2.441 MB / 476.4 MB, free: 44.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.3449, allocations: 0 / 476.4 MB, free: 44.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.006783/0.3517, allocations: 2.829 MB / 479.2 MB, free: 42.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.3517, allocations: 6.094 kB / 479.3 MB, free: 42.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.3517, allocations: 3.5 kB / 479.3 MB, free: 42.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.113e-05/0.3518, allocations: 8.156 kB / 479.3 MB, free: 42.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002534/0.3543, allocations: 410.4 kB / 479.7 MB, free: 42.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.921e-05/0.3543, allocations: 10.95 kB / 479.7 MB, free: 42.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001799/0.3561, allocations: 219.2 kB / 479.9 MB, free: 42.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001519/0.3563, allocations: 48.84 kB / 479.9 MB, free: 42.89 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.0004116/0.3567, allocations: 227.7 kB / 480.2 MB, free: 42.72 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002033/0.3569, allocations: 66 kB / 480.2 MB, free: 42.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002142/0.3571, allocations: 109.6 kB / 480.3 MB, free: 42.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.3572, allocations: 16.08 kB / 480.3 MB, free: 42.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/0.3572, allocations: 0.9062 kB / 480.3 MB, free: 42.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.3572, allocations: 6.328 kB / 480.4 MB, free: 42.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01033/0.3675, allocations: 5.237 MB / 485.6 MB, free: 40.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.461e-05/0.3676, allocations: 21.06 kB / 485.6 MB, free: 40.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001387/0.369, allocations: 357.7 kB / 486 MB, free: 40.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-05/0.369, allocations: 28.22 kB / 486 MB, free: 40.17 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-05/0.3691, allocations: 43.97 kB / 486 MB, free: 40.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.03e-05/0.3691, allocations: 40.31 kB / 486.1 MB, free: 40.15 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-05/0.3691, allocations: 32.97 kB / 486.1 MB, free: 40.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006379/0.3755, allocations: 3.091 MB / 489.2 MB, free: 38.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003394/0.3759, allocations: 238.5 kB / 489.4 MB, free: 38.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001294/0.376, allocations: 52.05 kB / 489.5 MB, free: 38.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001224/0.3772, allocations: 190.1 kB / 489.7 MB, free: 38.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000408/0.3777, allocations: 222.6 kB / 489.9 MB, free: 38.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.654e-05/0.3778, allocations: 55.81 kB / 489.9 MB, free: 38.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002565/0.378, allocations: 264.5 kB / 490.2 MB, free: 37.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.378, allocations: 0 / 490.2 MB, free: 37.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009924/0.379, allocations: 230.2 kB / 490.4 MB, free: 37.93 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.006768/0.3858, allocations: 3.692 MB / 494.1 MB, free: 35.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005851/0.3917, allocations: 2.408 MB / 496.5 MB, free: 34.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/0.3917, allocations: 3.188 kB / 496.5 MB, free: 34.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00304/0.3947, allocations: 1.067 MB / 497.6 MB, free: 34.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.396, allocations: 147.9 kB / 497.7 MB, free: 34.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02125/0.4172, allocations: 12.71 MB / 0.4985 GB, free: 23.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000292/0.4175, allocations: 0.9204 MB / 0.4994 GB, free: 22.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001144/0.4187, allocations: 194.2 kB / 0.4996 GB, free: 22.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006511/0.4193, allocations: 223.4 kB / 0.4998 GB, free: 22.45 MB / 382.1 MB Notification: Performance of SimCode: time 6.22e-07/0.4194, allocations: 0 / 0.4998 GB, free: 22.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1859/0.6053, allocations: 20.94 MB / 0.5202 GB, free: 1.586 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001907/0.6055, allocations: 177.3 kB / 0.5204 GB, free: 1.336 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.561/3.167, allocations: 0 / 0.5204 GB, free: 1.336 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