Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_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.001558/0.001558, allocations: 109.4 kB / 17.21 MB, free: 6.27 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.001662/0.001662, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 222.9 MB / 241.8 MB, free: 15.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2445/0.2445, allocations: 44.17 MB / 336.1 MB, free: 3.039 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001277, allocations: 58.25 kB / 407.8 MB, free: 27.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1371, allocations: 60.81 MB / 468.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003809/0.141, allocations: 2.445 MB / 471.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001627/0.1426, allocations: 0.9359 MB / 472 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001578/0.1428, allocations: 11.88 kB / 472 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003769/0.1432, allocations: 91.52 kB / 472.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002149/0.1435, allocations: 83.56 kB / 472.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005772/0.144, allocations: 255.7 kB / 472.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006552/0.1447, allocations: 0.6782 MB / 473.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.1449, allocations: 77.31 kB / 473.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002923/0.1452, allocations: 267 kB / 473.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003533/0.1455, allocations: 322.7 kB / 473.8 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.63e-05/0.1456, allocations: 36 kB / 473.8 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.99e-05/0.1457, allocations: 36 kB / 473.8 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001852/0.1459, allocations: 167.5 kB / 474 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000209/0.1461, allocations: 222.8 kB / 474.2 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004961/0.1466, allocations: 0.5099 MB / 474.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1466, allocations: 0 / 474.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1467, allocations: 3.984 kB / 474.7 MB, free: 8.633 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.1467, allocations: 0 / 474.7 MB, free: 8.633 MB / 350.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.002321/0.149, allocations: 0.9315 MB / 475.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.768e-05/0.1491, allocations: 12.03 kB / 475.7 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001169/0.1492, allocations: 90.7 kB / 475.8 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001327/0.1493, allocations: 64.31 kB / 475.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005272/0.1499, allocations: 375.1 kB / 476.2 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003786/0.1502, allocations: 259.7 kB / 476.4 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.805e-05/0.1503, allocations: 52.27 kB / 476.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002049/0.1524, allocations: 0.8046 MB / 477.3 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.567e-05/0.1524, allocations: 7.938 kB / 477.3 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.458e-05/0.1525, allocations: 16 kB / 477.3 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.1525, allocations: 12 kB / 477.3 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003553/0.1561, allocations: 1.208 MB / 478.5 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003143/0.1593, allocations: 2.05 MB / 480.6 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002892/0.1622, allocations: 0.829 MB / 481.4 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001515/0.1637, allocations: 0.4896 MB / 481.9 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.014e-05/0.1638, allocations: 5.062 kB / 481.9 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.9e-05/0.1638, allocations: 42.5 kB / 481.9 MB, free: 1.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 3.186e-06/0.1639, allocations: 0 / 481.9 MB, free: 1.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.08746/0.2513, allocations: 15.74 MB / 497.7 MB, free: 1.188 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.116e-05/0.2514, allocations: 94.17 kB / 497.8 MB, free: 1.078 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004889/0.2519, allocations: 397.4 kB / 498.2 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001536/0.2521, allocations: 45.7 kB / 498.2 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.2523, allocations: 217.1 kB / 498.4 MB, free: 424 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004399/0.2527, allocations: 398.1 kB / 498.8 MB, free: 20 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005867/0.2533, allocations: 202.9 kB / 499 MB, free: 15.81 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.2535, allocations: 374.8 kB / 499.4 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003573/0.2571, allocations: 1.342 MB / 0.489 GB, free: 14.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003706/0.2608, allocations: 1.493 MB / 0.4904 GB, free: 12.56 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006379/0.2672, allocations: 2.441 MB / 0.4928 GB, free: 10.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.2672, allocations: 0 / 0.4928 GB, free: 10.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007413/0.2746, allocations: 2.826 MB / 0.4956 GB, free: 7.238 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.2747, allocations: 10.5 kB / 0.4956 GB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.2747, allocations: 4 kB / 0.4956 GB, free: 7.227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.452e-05/0.2747, allocations: 8.25 kB / 0.4956 GB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002652/0.2774, allocations: 415.3 kB / 0.496 GB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.627e-05/0.2774, allocations: 19.86 kB / 0.496 GB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001901/0.2793, allocations: 215.7 kB / 0.4962 GB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001589/0.2795, allocations: 43.98 kB / 0.4963 GB, free: 6.539 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.0005037/0.28, allocations: 229.5 kB / 0.4965 GB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002256/0.2802, allocations: 63.25 kB / 0.4966 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002488/0.2805, allocations: 112.7 kB / 0.4967 GB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.2805, allocations: 12 kB / 0.4967 GB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/0.2805, allocations: 3.938 kB / 0.4967 GB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.2806, allocations: 3.984 kB / 0.4967 GB, free: 6.109 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01159/0.2921, allocations: 5.234 MB / 0.5018 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-05/0.2922, allocations: 20 kB / 0.5018 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001477/0.2937, allocations: 355.5 kB / 0.5021 GB, free: 176 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.5e-05/0.2937, allocations: 28 kB / 0.5022 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-05/0.2938, allocations: 48 kB / 0.5022 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.181e-05/0.2939, allocations: 35.86 kB / 0.5023 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.108e-05/0.2939, allocations: 35.81 kB / 0.5023 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2328/0.5267, allocations: 3.086 MB / 0.5053 GB, free: 49.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004526/0.5272, allocations: 244.3 kB / 0.5055 GB, free: 49.61 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/0.5274, allocations: 52.56 kB / 0.5056 GB, free: 49.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001355/0.5287, allocations: 193 kB / 0.5058 GB, free: 49.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000484/0.5292, allocations: 215.5 kB / 0.506 GB, free: 49.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.5293, allocations: 60.89 kB / 0.506 GB, free: 49.6 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003307/0.5297, allocations: 266 kB / 0.5063 GB, free: 49.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5297, allocations: 0 / 0.5063 GB, free: 49.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001164/0.5309, allocations: 229.2 kB / 0.5065 GB, free: 49.52 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.007205/0.5381, allocations: 3.682 MB / 0.5101 GB, free: 47.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006272/0.5444, allocations: 2.339 MB / 0.5124 GB, free: 46.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.538e-05/0.5444, allocations: 3.594 kB / 0.5124 GB, free: 46.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003727/0.5481, allocations: 1.066 MB / 0.5134 GB, free: 46.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001302/0.5494, allocations: 161 kB / 0.5136 GB, free: 46.06 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02399/0.5734, allocations: 12.69 MB / 0.526 GB, free: 38.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004421/0.5739, allocations: 0.9315 MB / 0.5269 GB, free: 37.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001274/0.5752, allocations: 200.6 kB / 0.5271 GB, free: 37.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006658/0.5759, allocations: 209.3 kB / 0.5273 GB, free: 37.51 MB / 382.1 MB Notification: Performance of SimCode: time 1.723e-06/0.5759, allocations: 3.844 kB / 0.5273 GB, free: 37.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02875/0.6047, allocations: 20.12 MB / 0.5469 GB, free: 17.68 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001821/0.6049, allocations: 185.4 kB / 0.5471 GB, free: 17.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.374/2.979, allocations: 0 / 0.5471 GB, free: 17.43 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches