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.001225/0.001225, allocations: 105.9 kB / 16.41 MB, free: 6.461 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.001217/0.001217, allocations: 192.2 kB / 17.34 MB, free: 5.715 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.385/1.385, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1962/0.1962, allocations: 43.52 MB / 314.1 MB, free: 448 kB / 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.001411/0.001411, allocations: 65.47 kB / 441.3 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1168, allocations: 57.78 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003856/0.1207, allocations: 2.408 MB / 0.4897 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002099/0.1228, allocations: 0.9872 MB / 0.4907 GB, free: 8.867 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004332/0.1233, allocations: 11.88 kB / 0.4907 GB, free: 8.855 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005173/0.1238, allocations: 115.2 kB / 0.4908 GB, free: 8.742 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004608/0.1243, allocations: 111.4 kB / 0.4909 GB, free: 8.633 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000911/0.1253, allocations: 275.5 kB / 0.4912 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009428/0.1262, allocations: 0.7327 MB / 0.4919 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.1265, allocations: 73.05 kB / 0.492 GB, free: 7.551 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005094/0.127, allocations: 299 kB / 0.4923 GB, free: 7.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004973/0.1275, allocations: 334.7 kB / 0.4926 GB, free: 6.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001618/0.1277, allocations: 60 kB / 0.4926 GB, free: 6.871 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001242/0.1278, allocations: 60 kB / 0.4927 GB, free: 6.812 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002158/0.128, allocations: 191.5 kB / 0.4929 GB, free: 6.625 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000271/0.1283, allocations: 238.7 kB / 0.4931 GB, free: 6.391 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006798/0.129, allocations: 0.5602 MB / 0.4937 GB, free: 5.828 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.129, allocations: 4 kB / 0.4937 GB, free: 5.824 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.129, allocations: 0 / 0.4937 GB, free: 5.824 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.733e-05/0.129, allocations: 4 kB / 0.4937 GB, free: 5.82 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.002453/0.1315, allocations: 0.9427 MB / 0.4946 GB, free: 4.828 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.1315, allocations: 11.89 kB / 0.4946 GB, free: 4.816 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001241/0.1317, allocations: 86.72 kB / 0.4947 GB, free: 4.723 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001411/0.1318, allocations: 68.59 kB / 0.4947 GB, free: 4.656 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007042/0.1325, allocations: 387.3 kB / 0.4951 GB, free: 4.238 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003654/0.1329, allocations: 259.7 kB / 0.4954 GB, free: 3.949 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.133, allocations: 52.31 kB / 0.4954 GB, free: 3.898 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002065/0.1351, allocations: 0.8085 MB / 0.4962 GB, free: 3.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/0.1351, allocations: 3.938 kB / 0.4962 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.927e-05/0.1352, allocations: 19.94 kB / 0.4962 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.1352, allocations: 12 kB / 0.4962 GB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003554/0.1388, allocations: 1.196 MB / 0.4974 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003018/0.1418, allocations: 2.043 MB / 0.4994 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003065/0.1449, allocations: 0.8326 MB / 0.5002 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001519/0.1464, allocations: 0.494 MB / 0.5007 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.883e-05/0.1465, allocations: 4 kB / 0.5007 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.1466, allocations: 42.5 kB / 0.5007 GB, free: 14.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 3.076e-06/0.1466, allocations: 4 kB / 0.5007 GB, free: 14.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.08745/0.234, allocations: 15.77 MB / 0.5161 GB, free: 14.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.985e-05/0.2341, allocations: 94.17 kB / 0.5162 GB, free: 14.23 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005072/0.2347, allocations: 393.4 kB / 0.5166 GB, free: 13.84 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001655/0.2348, allocations: 45.7 kB / 0.5166 GB, free: 13.79 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/0.235, allocations: 225.5 kB / 0.5169 GB, free: 13.56 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004376/0.2355, allocations: 416.3 kB / 0.5173 GB, free: 13.15 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005832/0.236, allocations: 206.9 kB / 0.5175 GB, free: 12.94 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.2362, allocations: 374.8 kB / 0.5178 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003599/0.2398, allocations: 1.342 MB / 0.5191 GB, free: 11.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003711/0.2435, allocations: 1.497 MB / 0.5206 GB, free: 9.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006638/0.2502, allocations: 2.449 MB / 0.523 GB, free: 7.188 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.2502, allocations: 0 / 0.523 GB, free: 7.188 MB / 414.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007706/0.2579, allocations: 2.83 MB / 0.5257 GB, free: 4.348 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.258, allocations: 4 kB / 0.5257 GB, free: 4.344 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.258, allocations: 4 kB / 0.5258 GB, free: 4.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.759e-05/0.258, allocations: 8 kB / 0.5258 GB, free: 4.332 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002756/0.2608, allocations: 411.6 kB / 0.5262 GB, free: 3.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.636e-05/0.2608, allocations: 23.84 kB / 0.5262 GB, free: 3.906 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002079/0.2629, allocations: 211.7 kB / 0.5264 GB, free: 3.699 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001745/0.2631, allocations: 43.98 kB / 0.5264 GB, free: 3.656 MB / 414.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.0005352/0.2637, allocations: 233.8 kB / 0.5266 GB, free: 3.418 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002719/0.2639, allocations: 67.58 kB / 0.5267 GB, free: 3.352 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002562/0.2642, allocations: 112.7 kB / 0.5268 GB, free: 3.242 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-05/0.2642, allocations: 12 kB / 0.5268 GB, free: 3.23 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.545e-05/0.2642, allocations: 3.938 kB / 0.5268 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.2643, allocations: 3.984 kB / 0.5268 GB, free: 3.223 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2358/0.5, allocations: 5.231 MB / 0.5319 GB, free: 41.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.33e-05/0.5001, allocations: 21.8 kB / 0.532 GB, free: 41.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001625/0.5018, allocations: 356.6 kB / 0.5323 GB, free: 41.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.602e-05/0.5018, allocations: 27.12 kB / 0.5323 GB, free: 41.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.225e-05/0.5019, allocations: 45.72 kB / 0.5324 GB, free: 41.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.902e-05/0.5019, allocations: 44.36 kB / 0.5324 GB, free: 41.08 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.531e-05/0.502, allocations: 39.19 kB / 0.5325 GB, free: 41.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007249/0.5092, allocations: 3.094 MB / 0.5355 GB, free: 40.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004275/0.5097, allocations: 240.7 kB / 0.5357 GB, free: 39.92 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001444/0.5098, allocations: 49.34 kB / 0.5357 GB, free: 39.92 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001304/0.5111, allocations: 190 kB / 0.5359 GB, free: 39.92 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004074/0.5116, allocations: 222.5 kB / 0.5361 GB, free: 39.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.812e-05/0.5116, allocations: 55.25 kB / 0.5362 GB, free: 39.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002996/0.5119, allocations: 267.1 kB / 0.5364 GB, free: 39.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.512, allocations: 0 / 0.5364 GB, free: 39.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001109/0.5131, allocations: 230.1 kB / 0.5367 GB, free: 39.79 MB / 414.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.007636/0.5207, allocations: 3.695 MB / 0.5403 GB, free: 37.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006634/0.5274, allocations: 2.384 MB / 0.5426 GB, free: 37.05 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-05/0.5274, allocations: 4.219 kB / 0.5426 GB, free: 37.05 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003477/0.5309, allocations: 1.063 MB / 0.5436 GB, free: 36.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/0.5323, allocations: 151 kB / 0.5438 GB, free: 36.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0255/0.5578, allocations: 12.37 MB / 0.5559 GB, free: 29.63 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.5582, allocations: 0.9264 MB / 0.5568 GB, free: 28.92 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009418/0.5591, allocations: 204.8 kB / 0.557 GB, free: 28.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006424/0.5598, allocations: 227.6 kB / 0.5572 GB, free: 28.71 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.5598, allocations: 0 / 0.5572 GB, free: 28.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03579/0.5956, allocations: 21.7 MB / 0.5784 GB, free: 8.883 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.642/9.238, allocations: 7.922 kB / 0.5784 GB, free: 8.875 MB / 414.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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches