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.001353/0.001353, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001184/0.001184, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.398/1.398, allocations: 222.9 MB / 242.3 MB, free: 15.21 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.2218/0.2218, allocations: 44.18 MB / 336.6 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 67.3 kB / 408.5 MB, free: 27.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1221, allocations: 60.83 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003646/0.1258, allocations: 2.398 MB / 471.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001686/0.1275, allocations: 0.9436 MB / 472.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000165/0.1277, allocations: 11.88 kB / 472.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003584/0.128, allocations: 111.3 kB / 472.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002218/0.1283, allocations: 99.31 kB / 472.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006071/0.1289, allocations: 287.5 kB / 473.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006547/0.1296, allocations: 0.7251 MB / 473.9 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001905/0.1298, allocations: 65.34 kB / 474 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003144/0.1301, allocations: 291.1 kB / 474.3 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004084/0.1305, allocations: 342.7 kB / 474.6 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001117/0.1306, allocations: 60 kB / 474.7 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.812e-05/0.1307, allocations: 60 kB / 474.7 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002063/0.1309, allocations: 187.5 kB / 474.9 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002283/0.1312, allocations: 242.7 kB / 475.1 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005152/0.1317, allocations: 0.5451 MB / 475.7 MB, free: 7.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1317, allocations: 0 / 475.7 MB, free: 7.922 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1317, allocations: 0 / 475.7 MB, free: 7.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.717e-06/0.1317, allocations: 0 / 475.7 MB, free: 7.922 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.002206/0.1339, allocations: 0.9392 MB / 476.6 MB, free: 6.934 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.134, allocations: 11.97 kB / 476.6 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001033/0.1341, allocations: 86.72 kB / 476.7 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.1342, allocations: 68.36 kB / 476.8 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004914/0.1347, allocations: 367.2 kB / 477.1 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003491/0.1351, allocations: 267.7 kB / 477.4 MB, free: 6.062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.135e-05/0.1352, allocations: 48.28 kB / 477.5 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001992/0.1372, allocations: 0.8046 MB / 478.3 MB, free: 5.172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.1372, allocations: 7.938 kB / 478.3 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.807e-05/0.1373, allocations: 16 kB / 478.3 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.1373, allocations: 12 kB / 478.3 MB, free: 5.137 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003536/0.1408, allocations: 1.204 MB / 479.5 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002765/0.1436, allocations: 2.042 MB / 481.5 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002969/0.1466, allocations: 0.8285 MB / 482.4 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001486/0.1481, allocations: 493.3 kB / 482.9 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.51e-05/0.1482, allocations: 13.05 kB / 482.9 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.1482, allocations: 42.5 kB / 482.9 MB, free: 416 kB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 2.264e-06/0.1482, allocations: 0 / 482.9 MB, free: 416 kB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.08707/0.2353, allocations: 15.74 MB / 498.7 MB, free: 496 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.719e-05/0.2354, allocations: 94.17 kB / 498.7 MB, free: 384 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004993/0.2359, allocations: 385.5 kB / 499.1 MB, free: 15.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001735/0.2361, allocations: 45.7 kB / 499.2 MB, free: 15.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000194/0.2363, allocations: 225 kB / 499.4 MB, free: 15.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004665/0.2368, allocations: 398.1 kB / 499.8 MB, free: 15.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005838/0.2374, allocations: 202.8 kB / 500 MB, free: 15.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.2375, allocations: 366.8 kB / 0.4886 GB, free: 14.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003747/0.2413, allocations: 1.349 MB / 0.4899 GB, free: 13.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003853/0.2452, allocations: 1.497 MB / 0.4914 GB, free: 11.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006915/0.2521, allocations: 2.449 MB / 0.4938 GB, free: 9.359 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.2521, allocations: 4 kB / 0.4938 GB, free: 9.355 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007903/0.26, allocations: 2.818 MB / 0.4965 GB, free: 6.531 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/0.2601, allocations: 8.25 kB / 0.4965 GB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.2601, allocations: 8 kB / 0.4965 GB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.43e-05/0.2602, allocations: 8 kB / 0.4966 GB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00273/0.2629, allocations: 407.3 kB / 0.4969 GB, free: 6.109 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.166e-05/0.2629, allocations: 15.88 kB / 0.497 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001988/0.2649, allocations: 219.7 kB / 0.4972 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001542/0.2651, allocations: 43.98 kB / 0.4972 GB, free: 5.836 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.0004551/0.2656, allocations: 230.8 kB / 0.4974 GB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002654/0.2658, allocations: 67.19 kB / 0.4975 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001999/0.266, allocations: 104.7 kB / 0.4976 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.2661, allocations: 12 kB / 0.4976 GB, free: 5.418 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/0.2661, allocations: 3.938 kB / 0.4976 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.118e-05/0.2661, allocations: 15.97 kB / 0.4976 GB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2231/0.4892, allocations: 5.215 MB / 0.5027 GB, free: 50.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.385e-05/0.4893, allocations: 25.41 kB / 0.5027 GB, free: 50.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001773/0.4911, allocations: 354.5 kB / 0.5031 GB, free: 50.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.645e-05/0.4911, allocations: 29.22 kB / 0.5031 GB, free: 50.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.946e-05/0.4912, allocations: 44.92 kB / 0.5031 GB, free: 50.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.516e-05/0.4913, allocations: 42.81 kB / 0.5032 GB, free: 50.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.423e-05/0.4913, allocations: 31.09 kB / 0.5032 GB, free: 50.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007944/0.4992, allocations: 3.096 MB / 0.5062 GB, free: 49.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004299/0.4997, allocations: 236.3 kB / 0.5065 GB, free: 49.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001534/0.4999, allocations: 51.61 kB / 0.5065 GB, free: 49.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/0.5013, allocations: 192.2 kB / 0.5067 GB, free: 49.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004789/0.5018, allocations: 223 kB / 0.5069 GB, free: 49.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.5019, allocations: 57.69 kB / 0.507 GB, free: 49.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003428/0.5023, allocations: 267.4 kB / 0.5072 GB, free: 48.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5023, allocations: 0 / 0.5072 GB, free: 48.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001137/0.5034, allocations: 232.7 kB / 0.5074 GB, free: 48.96 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.007619/0.5111, allocations: 3.678 MB / 0.511 GB, free: 46.81 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006994/0.5181, allocations: 2.414 MB / 0.5134 GB, free: 45.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.309e-05/0.5181, allocations: 3.25 kB / 0.5134 GB, free: 45.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003556/0.5217, allocations: 1.065 MB / 0.5144 GB, free: 45.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001483/0.5232, allocations: 145.8 kB / 0.5146 GB, free: 45.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02875/0.552, allocations: 12.45 MB / 0.5267 GB, free: 38.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/0.5524, allocations: 0.9299 MB / 0.5276 GB, free: 37.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001278/0.5537, allocations: 201 kB / 0.5278 GB, free: 37.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006337/0.5543, allocations: 215.4 kB / 0.528 GB, free: 36.99 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5543, allocations: 0 / 0.528 GB, free: 36.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04399/0.5983, allocations: 21.65 MB / 0.5492 GB, free: 15.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.225/8.823, allocations: 3.938 kB / 0.5492 GB, free: 15.45 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_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.csv","/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