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.001113/0.001113, allocations: 100.1 kB / 16.26 MB, free: 5.93 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.001137/0.001137, allocations: 190.1 kB / 17.2 MB, free: 5.574 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.479/1.479, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2321/0.2321, allocations: 43.52 MB / 313.9 MB, free: 0.5234 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.002275/0.002276, allocations: 76.53 kB / 382.8 MB, free: 56.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1141, allocations: 57.78 MB / 440.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.00303/0.1171, allocations: 2.393 MB / 443 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001244/0.1184, allocations: 0.9834 MB / 444 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001632/0.1186, allocations: 19.81 kB / 444 MB, free: 3.379 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003554/0.1189, allocations: 115.2 kB / 444.1 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001765/0.1191, allocations: 95.38 kB / 444.2 MB, free: 3.172 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004744/0.1196, allocations: 283.5 kB / 444.5 MB, free: 2.895 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004371/0.1201, allocations: 0.721 MB / 445.2 MB, free: 2.172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.1202, allocations: 68.98 kB / 445.3 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002424/0.1205, allocations: 307 kB / 445.6 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002845/0.1208, allocations: 330.7 kB / 445.9 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.373e-05/0.1209, allocations: 60 kB / 446 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.139e-05/0.121, allocations: 60 kB / 446 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.1211, allocations: 191.5 kB / 446.2 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001571/0.1213, allocations: 246.7 kB / 446.5 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003699/0.1216, allocations: 0.5412 MB / 447 MB, free: 392 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1217, allocations: 4 kB / 447 MB, free: 388 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1217, allocations: 0 / 447 MB, free: 388 kB / 318.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.1217, allocations: 0 / 447 MB, free: 388 kB / 318.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.002241/0.1239, allocations: 0.9276 MB / 447.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.124, allocations: 23.83 kB / 447.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001064/0.1241, allocations: 94.7 kB / 448 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001219/0.1242, allocations: 64.28 kB / 448.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004976/0.1247, allocations: 371.2 kB / 448.5 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003717/0.1251, allocations: 259.7 kB / 448.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.082e-05/0.1252, allocations: 40.38 kB / 448.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002012/0.1272, allocations: 0.8163 MB / 449.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.1273, allocations: 4 kB / 449.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.758e-05/0.1273, allocations: 16 kB / 449.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.1274, allocations: 8 kB / 449.6 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003616/0.131, allocations: 1.2 MB / 450.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003017/0.134, allocations: 2.05 MB / 452.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003193/0.1372, allocations: 0.818 MB / 453.7 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001706/0.1389, allocations: 497.3 kB / 454.2 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.676e-05/0.139, allocations: 9.062 kB / 454.2 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.1391, allocations: 50.44 kB / 454.2 MB, free: 8.871 MB / 334.1 MB Notification: Performance of pre-optimization done (n=64): time 2.835e-06/0.1391, allocations: 0 / 454.2 MB, free: 8.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=120): time 0.08707/0.2261, allocations: 15.74 MB / 470 MB, free: 8.953 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.216e-05/0.2262, allocations: 98.16 kB / 470.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000403/0.2266, allocations: 385.5 kB / 470.4 MB, free: 8.457 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00014/0.2268, allocations: 45.7 kB / 470.5 MB, free: 8.406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.2269, allocations: 221.1 kB / 470.7 MB, free: 8.184 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003691/0.2273, allocations: 402.1 kB / 471.1 MB, free: 7.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000529/0.2278, allocations: 198.8 kB / 471.3 MB, free: 7.586 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.228, allocations: 374.8 kB / 471.6 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003658/0.2317, allocations: 1.338 MB / 473 MB, free: 5.871 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00371/0.2354, allocations: 1.497 MB / 474.5 MB, free: 4.328 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006673/0.2421, allocations: 2.445 MB / 476.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.2421, allocations: 0 / 476.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007861/0.25, allocations: 2.826 MB / 479.7 MB, free: 15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.25, allocations: 8 kB / 479.8 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.25, allocations: 4 kB / 479.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.158e-05/0.2501, allocations: 11.94 kB / 479.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003954/0.254, allocations: 407.7 kB / 480.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.622e-05/0.2541, allocations: 15.88 kB / 480.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00301/0.2571, allocations: 219.7 kB / 480.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002515/0.2574, allocations: 36 kB / 480.4 MB, free: 14.32 MB / 366.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.0007215/0.2581, allocations: 241.7 kB / 480.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003733/0.2585, allocations: 67.23 kB / 480.7 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003021/0.2588, allocations: 112.7 kB / 480.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.689e-05/0.2589, allocations: 15.94 kB / 480.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-05/0.2589, allocations: 3.938 kB / 480.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/0.2589, allocations: 3.984 kB / 480.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01777/0.2767, allocations: 5.236 MB / 486.1 MB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.465e-05/0.2768, allocations: 20 kB / 486.1 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002313/0.2791, allocations: 363.4 kB / 486.5 MB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.389e-05/0.2791, allocations: 28 kB / 486.5 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001401/0.2793, allocations: 48 kB / 486.6 MB, free: 7.844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.687e-05/0.2794, allocations: 39.86 kB / 486.6 MB, free: 7.805 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.865e-05/0.2794, allocations: 39.8 kB / 486.6 MB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01112/0.2905, allocations: 3.09 MB / 489.7 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007182/0.2913, allocations: 240.3 kB / 490 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002043/0.2915, allocations: 51.98 kB / 490 MB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001983/0.2935, allocations: 187.8 kB / 490.2 MB, free: 3.891 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006561/0.2942, allocations: 219.2 kB / 490.4 MB, free: 3.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001473/0.2943, allocations: 63.92 kB / 490.5 MB, free: 3.613 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004554/0.2948, allocations: 259.2 kB / 490.7 MB, free: 3.355 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2948, allocations: 0 / 490.7 MB, free: 3.355 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001668/0.2965, allocations: 232 kB / 490.9 MB, free: 3.129 MB / 366.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.01147/0.308, allocations: 3.686 MB / 494.6 MB, free: 15.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008607/0.3166, allocations: 2.402 MB / 497 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.413e-05/0.3167, allocations: 4 kB / 497 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005183/0.3219, allocations: 1.063 MB / 498.1 MB, free: 11.67 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002333/0.3243, allocations: 165.1 kB / 498.3 MB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04161/0.3659, allocations: 12.45 MB / 0.4987 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000951/0.3669, allocations: 0.9283 MB / 0.4997 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002203/0.3691, allocations: 202.3 kB / 0.4998 GB, free: 13.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001077/0.3702, allocations: 223.3 kB / 0.5001 GB, free: 12.96 MB / 398.1 MB Notification: Performance of SimCode: time 3.366e-06/0.3702, allocations: 0 / 0.5001 GB, free: 12.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06806/0.4383, allocations: 21.64 MB / 0.5212 GB, free: 7.289 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.383/8.822, allocations: 8.062 kB / 0.5212 GB, free: 7.281 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