Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001236/0.001236, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2267/0.2267, allocations: 46.11 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002292/0.002293, allocations: 83.55 kB / 417.8 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1093, allocations: 62.46 MB / 480.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003894/0.1132, allocations: 2.408 MB / 482.6 MB, free: 2.727 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001738/0.115, allocations: 0.967 MB / 483.6 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001411/0.1152, allocations: 11.88 kB / 483.6 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003554/0.1155, allocations: 119.2 kB / 483.7 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002149/0.1158, allocations: 95.39 kB / 483.8 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000594/0.1164, allocations: 283.5 kB / 484.1 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007519/0.1171, allocations: 0.7095 MB / 484.8 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001688/0.1173, allocations: 77.31 kB / 484.9 MB, free: 476 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003302/0.1176, allocations: 295 kB / 485.2 MB, free: 180 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004301/0.1181, allocations: 334.7 kB / 485.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.1182, allocations: 60 kB / 485.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.51e-05/0.1183, allocations: 60 kB / 485.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002054/0.1185, allocations: 179.5 kB / 485.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000231/0.1187, allocations: 238.8 kB / 486 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005586/0.1193, allocations: 0.5451 MB / 486.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1193, allocations: 4 kB / 486.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1193, allocations: 3.938 kB / 486.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.1194, allocations: 0 / 486.6 MB, free: 14.77 MB / 366.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.002371/0.1217, allocations: 0.9391 MB / 487.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.1218, allocations: 8.031 kB / 487.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001134/0.1219, allocations: 90.72 kB / 487.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.122, allocations: 64.38 kB / 487.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005119/0.1225, allocations: 367.2 kB / 488 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003924/0.1229, allocations: 263.7 kB / 488.3 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.1231, allocations: 44.28 kB / 488.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002185/0.1253, allocations: 0.8124 MB / 489.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.1253, allocations: 0 / 489.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.317e-05/0.1253, allocations: 16 kB / 489.1 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.1254, allocations: 12 kB / 489.2 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003843/0.1292, allocations: 1.204 MB / 490.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003023/0.1323, allocations: 2.042 MB / 492.4 MB, free: 8.664 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003344/0.1356, allocations: 0.831 MB / 493.2 MB, free: 7.816 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001689/0.1373, allocations: 0.4901 MB / 493.7 MB, free: 7.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.993e-05/0.1374, allocations: 4 kB / 493.7 MB, free: 7.316 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/0.1374, allocations: 42.5 kB / 493.8 MB, free: 7.266 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.645e-06/0.1375, allocations: 4 kB / 493.8 MB, free: 7.262 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.0911/0.2286, allocations: 15.75 MB / 0.4976 GB, free: 7.332 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.485e-05/0.2287, allocations: 94.17 kB / 0.4977 GB, free: 7.223 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000519/0.2292, allocations: 385.5 kB / 0.498 GB, free: 6.836 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001595/0.2294, allocations: 41.7 kB / 0.4981 GB, free: 6.789 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.2296, allocations: 229 kB / 0.4983 GB, free: 6.559 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004521/0.23, allocations: 402.2 kB / 0.4987 GB, free: 6.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005909/0.2306, allocations: 194.8 kB / 0.4989 GB, free: 5.961 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002077/0.2308, allocations: 374.8 kB / 0.4992 GB, free: 5.586 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003962/0.2348, allocations: 1.342 MB / 0.5005 GB, free: 4.246 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004067/0.2389, allocations: 1.493 MB / 0.502 GB, free: 2.707 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007322/0.2462, allocations: 2.445 MB / 0.5044 GB, free: 224 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.2463, allocations: 0 / 0.5044 GB, free: 224 kB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.1802/0.4264, allocations: 2.828 MB / 0.5071 GB, free: 43.28 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.4265, allocations: 6.062 kB / 0.5071 GB, free: 43.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.4265, allocations: 4.938 kB / 0.5072 GB, free: 43.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.865e-05/0.4265, allocations: 8.594 kB / 0.5072 GB, free: 43.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002786/0.4293, allocations: 403.7 kB / 0.5075 GB, free: 43.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.151e-05/0.4294, allocations: 18.03 kB / 0.5076 GB, free: 43.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002019/0.4314, allocations: 217.5 kB / 0.5078 GB, free: 43.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001437/0.4315, allocations: 42.78 kB / 0.5078 GB, free: 43.23 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.0004331/0.432, allocations: 232.6 kB / 0.508 GB, free: 43.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002216/0.4322, allocations: 65.83 kB / 0.5081 GB, free: 43.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002217/0.4324, allocations: 107.8 kB / 0.5082 GB, free: 42.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.4325, allocations: 15.41 kB / 0.5082 GB, free: 42.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.4325, allocations: 1 kB / 0.5082 GB, free: 42.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/0.4325, allocations: 10.2 kB / 0.5082 GB, free: 42.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01107/0.4436, allocations: 5.224 MB / 0.5133 GB, free: 40.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-05/0.4436, allocations: 24.34 kB / 0.5133 GB, free: 40.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001536/0.4452, allocations: 354.5 kB / 0.5137 GB, free: 40.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-05/0.4452, allocations: 31.92 kB / 0.5137 GB, free: 40.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.838e-05/0.4453, allocations: 48 kB / 0.5138 GB, free: 40.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.833e-05/0.4453, allocations: 39.45 kB / 0.5138 GB, free: 40.49 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.012e-05/0.4454, allocations: 36.36 kB / 0.5138 GB, free: 40.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007141/0.4525, allocations: 3.09 MB / 0.5169 GB, free: 38.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003979/0.4529, allocations: 237.7 kB / 0.5171 GB, free: 38.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/0.4531, allocations: 56.3 kB / 0.5171 GB, free: 38.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/0.4544, allocations: 189.5 kB / 0.5173 GB, free: 38.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004285/0.4548, allocations: 221.2 kB / 0.5175 GB, free: 38.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.856e-05/0.4549, allocations: 56.66 kB / 0.5176 GB, free: 38.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002794/0.4552, allocations: 263.7 kB / 0.5178 GB, free: 38.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4552, allocations: 0 / 0.5178 GB, free: 38.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001028/0.4563, allocations: 227.6 kB / 0.518 GB, free: 38.27 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.007193/0.4635, allocations: 3.674 MB / 0.5216 GB, free: 35.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006319/0.4698, allocations: 2.411 MB / 0.524 GB, free: 35.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-05/0.4699, allocations: 2.125 kB / 0.524 GB, free: 35.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003265/0.4731, allocations: 1.072 MB / 0.525 GB, free: 34.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.4745, allocations: 153.8 kB / 0.5252 GB, free: 34.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0232/0.4977, allocations: 12.46 MB / 0.5374 GB, free: 22.63 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.498, allocations: 0.932 MB / 0.5383 GB, free: 21.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0012/0.4992, allocations: 211.4 kB / 0.5385 GB, free: 21.47 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006444/0.4999, allocations: 219.4 kB / 0.5387 GB, free: 21.26 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4999, allocations: 0 / 0.5387 GB, free: 21.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0421/0.542, allocations: 21.56 MB / 0.5597 GB, free: 15.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.289/8.831, allocations: 21.14 kB / 0.5598 GB, free: 15.75 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.KinematicPTP.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_1_0-beta_om_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1)