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.001618/0.001618, allocations: 109 kB / 16.41 MB, free: 6.508 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.00179/0.00179, allocations: 189.5 kB / 17.34 MB, free: 5.738 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.497/1.497, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2489/0.2489, allocations: 43.52 MB / 314.1 MB, free: 456 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.002096/0.002096, allocations: 73.45 kB / 441.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1066, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003622/0.1102, allocations: 2.412 MB / 0.4897 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001755/0.112, allocations: 0.9912 MB / 0.4907 GB, free: 8.875 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.1122, allocations: 11.88 kB / 0.4907 GB, free: 8.863 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000356/0.1126, allocations: 115.2 kB / 0.4908 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002294/0.1128, allocations: 95.38 kB / 0.4909 GB, free: 8.656 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006695/0.1135, allocations: 283.5 kB / 0.4912 GB, free: 8.379 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007847/0.1143, allocations: 0.7327 MB / 0.4919 GB, free: 7.645 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.1145, allocations: 65.05 kB / 0.492 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003689/0.1148, allocations: 299 kB / 0.4923 GB, free: 7.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004355/0.1153, allocations: 338.7 kB / 0.4926 GB, free: 6.949 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.1154, allocations: 60 kB / 0.4926 GB, free: 6.891 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.1155, allocations: 60 kB / 0.4927 GB, free: 6.832 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.1157, allocations: 187.5 kB / 0.4929 GB, free: 6.648 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002462/0.116, allocations: 242.7 kB / 0.4931 GB, free: 6.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000661/0.1167, allocations: 0.5602 MB / 0.4937 GB, free: 5.848 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1167, allocations: 0 / 0.4937 GB, free: 5.848 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1167, allocations: 0 / 0.4937 GB, free: 5.848 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.1167, allocations: 0 / 0.4937 GB, free: 5.848 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.00248/0.1192, allocations: 0.9466 MB / 0.4946 GB, free: 4.852 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.1192, allocations: 15.89 kB / 0.4946 GB, free: 4.836 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001205/0.1194, allocations: 86.72 kB / 0.4947 GB, free: 4.742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001252/0.1195, allocations: 60.66 kB / 0.4947 GB, free: 4.684 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006591/0.1202, allocations: 395.2 kB / 0.4951 GB, free: 4.258 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003994/0.1206, allocations: 263.7 kB / 0.4954 GB, free: 3.965 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.497e-05/0.1207, allocations: 44.33 kB / 0.4954 GB, free: 3.922 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002271/0.123, allocations: 0.8163 MB / 0.4962 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.123, allocations: 7.875 kB / 0.4962 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.754e-05/0.1231, allocations: 16 kB / 0.4962 GB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.1231, allocations: 12 kB / 0.4962 GB, free: 3.031 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003865/0.127, allocations: 1.2 MB / 0.4974 GB, free: 1.832 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003287/0.1303, allocations: 2.043 MB / 0.4994 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003309/0.1336, allocations: 0.829 MB / 0.5002 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001669/0.1353, allocations: 497.8 kB / 0.5007 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.726e-05/0.1354, allocations: 4 kB / 0.5007 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.207e-05/0.1355, allocations: 50.48 kB / 0.5007 GB, free: 14.3 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.435e-06/0.1355, allocations: 0 / 0.5007 GB, free: 14.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.09238/0.2279, allocations: 15.76 MB / 0.5161 GB, free: 14.36 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.228e-05/0.228, allocations: 94.17 kB / 0.5162 GB, free: 14.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005232/0.2285, allocations: 397.5 kB / 0.5166 GB, free: 13.86 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001725/0.2287, allocations: 45.7 kB / 0.5166 GB, free: 13.8 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001775/0.2289, allocations: 221.5 kB / 0.5169 GB, free: 13.58 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004515/0.2294, allocations: 420.3 kB / 0.5173 GB, free: 13.17 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005892/0.23, allocations: 194.9 kB / 0.5174 GB, free: 12.97 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.2302, allocations: 378.8 kB / 0.5178 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004094/0.2343, allocations: 1.338 MB / 0.5191 GB, free: 11.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004247/0.2385, allocations: 1.505 MB / 0.5206 GB, free: 9.699 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007593/0.2461, allocations: 2.441 MB / 0.523 GB, free: 7.215 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.2462, allocations: 0 / 0.523 GB, free: 7.215 MB / 414.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008694/0.2549, allocations: 2.835 MB / 0.5257 GB, free: 4.371 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.604e-05/0.2549, allocations: 12.03 kB / 0.5257 GB, free: 4.359 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.2549, allocations: 4 kB / 0.5257 GB, free: 4.355 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.741e-05/0.255, allocations: 8 kB / 0.5258 GB, free: 4.348 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002891/0.2579, allocations: 411.4 kB / 0.5261 GB, free: 3.945 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.798e-05/0.2579, allocations: 15.94 kB / 0.5262 GB, free: 3.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002059/0.26, allocations: 219.6 kB / 0.5264 GB, free: 3.715 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002088/0.2602, allocations: 39.98 kB / 0.5264 GB, free: 3.676 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.0004802/0.2607, allocations: 233.8 kB / 0.5266 GB, free: 3.438 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002208/0.2609, allocations: 67.58 kB / 0.5267 GB, free: 3.371 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002784/0.2612, allocations: 108.7 kB / 0.5268 GB, free: 3.266 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.794e-05/0.2613, allocations: 12 kB / 0.5268 GB, free: 3.254 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.2613, allocations: 11.88 kB / 0.5268 GB, free: 3.242 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/0.2613, allocations: 7.969 kB / 0.5268 GB, free: 3.234 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2134/0.4747, allocations: 5.222 MB / 0.5319 GB, free: 41.13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-05/0.4748, allocations: 20.22 kB / 0.532 GB, free: 41.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001534/0.4763, allocations: 354.9 kB / 0.5323 GB, free: 41.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.582e-05/0.4764, allocations: 30.7 kB / 0.5323 GB, free: 41.11 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.938e-05/0.4765, allocations: 50.53 kB / 0.5324 GB, free: 41.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.952e-05/0.4765, allocations: 40.38 kB / 0.5324 GB, free: 41.1 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.835e-05/0.4765, allocations: 32.84 kB / 0.5324 GB, free: 41.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007028/0.4835, allocations: 3.092 MB / 0.5355 GB, free: 40.06 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003792/0.484, allocations: 239.8 kB / 0.5357 GB, free: 39.97 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.4841, allocations: 51 kB / 0.5357 GB, free: 39.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00132/0.4854, allocations: 189.9 kB / 0.5359 GB, free: 39.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004323/0.4859, allocations: 222.5 kB / 0.5361 GB, free: 39.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.276e-05/0.486, allocations: 57.84 kB / 0.5362 GB, free: 39.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002732/0.4862, allocations: 265.8 kB / 0.5364 GB, free: 39.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4862, allocations: 0 / 0.5364 GB, free: 39.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001027/0.4873, allocations: 233.1 kB / 0.5367 GB, free: 39.84 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.007386/0.4947, allocations: 3.691 MB / 0.5403 GB, free: 37.95 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006977/0.5017, allocations: 2.384 MB / 0.5426 GB, free: 37.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.543e-05/0.5017, allocations: 3.188 kB / 0.5426 GB, free: 37.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003694/0.5054, allocations: 1.064 MB / 0.5436 GB, free: 36.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001418/0.5069, allocations: 154.2 kB / 0.5438 GB, free: 36.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02631/0.5332, allocations: 12.37 MB / 0.5559 GB, free: 29.68 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003396/0.5336, allocations: 0.9314 MB / 0.5568 GB, free: 28.97 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00096/0.5346, allocations: 208.6 kB / 0.557 GB, free: 28.9 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006458/0.5352, allocations: 225.3 kB / 0.5572 GB, free: 28.75 MB / 414.1 MB Notification: Performance of SimCode: time 5.71e-07/0.5352, allocations: 0 / 0.5572 GB, free: 28.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06813/0.6033, allocations: 21.69 MB / 0.5784 GB, free: 8.898 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.034/9.637, allocations: 10.22 kB / 0.5784 GB, free: 8.891 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