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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001711/0.001711, allocations: 120.2 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002107/0.002107, allocations: 205 kB / 21.45 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.569/1.569, allocations: 230.4 MB / 254.7 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2335/0.2335, allocations: 46.93 MB / 357.7 MB, free: 10.21 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "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.002221/0.002221, allocations: 79.86 kB / 0.4917 GB, free: 7.742 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.119, allocations: 66.04 MB / 0.5561 GB, free: 5.57 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003763/0.1228, allocations: 2.424 MB / 0.5585 GB, free: 3.121 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001715/0.1245, allocations: 0.9864 MB / 0.5595 GB, free: 2.129 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.1247, allocations: 15.81 kB / 0.5595 GB, free: 2.113 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003824/0.125, allocations: 119.2 kB / 0.5596 GB, free: 1.996 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002392/0.1253, allocations: 95.39 kB / 0.5597 GB, free: 1.902 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006493/0.1259, allocations: 287.5 kB / 0.56 GB, free: 1.621 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007928/0.1267, allocations: 0.7132 MB / 0.5607 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.1269, allocations: 57.05 kB / 0.5607 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003541/0.1272, allocations: 303 kB / 0.561 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004281/0.1277, allocations: 342.7 kB / 0.5613 GB, free: 220 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.103e-05/0.1278, allocations: 60 kB / 0.5614 GB, free: 160 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.364e-05/0.1278, allocations: 63.94 kB / 0.5615 GB, free: 96 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002224/0.1281, allocations: 191.5 kB / 0.5616 GB, free: 15.9 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00023/0.1283, allocations: 242.6 kB / 0.5619 GB, free: 15.67 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006/0.1289, allocations: 0.5525 MB / 0.5624 GB, free: 15.11 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1289, allocations: 4 kB / 0.5624 GB, free: 15.11 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1289, allocations: 4 kB / 0.5624 GB, free: 15.11 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.1289, allocations: 0 / 0.5624 GB, free: 15.11 MB / 430.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.002414/0.1313, allocations: 0.9504 MB / 0.5633 GB, free: 14.11 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.1314, allocations: 12.02 kB / 0.5634 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.1315, allocations: 86.72 kB / 0.5634 GB, free: 14 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001355/0.1316, allocations: 64.61 kB / 0.5635 GB, free: 13.94 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006303/0.1322, allocations: 387.3 kB / 0.5639 GB, free: 13.52 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003997/0.1326, allocations: 263.6 kB / 0.5641 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.1327, allocations: 48.38 kB / 0.5642 GB, free: 13.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002217/0.135, allocations: 0.8124 MB / 0.565 GB, free: 12.33 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.135, allocations: 0 / 0.565 GB, free: 12.33 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.932e-05/0.135, allocations: 16 kB / 0.565 GB, free: 12.31 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.1351, allocations: 12 kB / 0.565 GB, free: 12.3 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0038/0.1389, allocations: 1.197 MB / 0.5662 GB, free: 11.11 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003104/0.142, allocations: 2.027 MB / 0.5681 GB, free: 8.992 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00324/0.1452, allocations: 0.7738 MB / 0.5689 GB, free: 8.199 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001581/0.1468, allocations: 454.4 kB / 0.5693 GB, free: 7.75 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.238e-05/0.1469, allocations: 15.98 kB / 0.5693 GB, free: 7.734 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.252e-05/0.1469, allocations: 38.5 kB / 0.5694 GB, free: 7.688 MB / 430.1 MB Notification: Performance of pre-optimization done (n=64): time 2.886e-06/0.1469, allocations: 4 kB / 0.5694 GB, free: 7.684 MB / 430.1 MB Notification: Performance of matching and sorting (n=120): time 0.09149/0.2384, allocations: 15.77 MB / 0.5848 GB, free: 7.734 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.826e-05/0.2385, allocations: 94.17 kB / 0.5849 GB, free: 7.621 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005165/0.239, allocations: 389.5 kB / 0.5853 GB, free: 7.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001729/0.2392, allocations: 49.64 kB / 0.5853 GB, free: 7.176 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001919/0.2394, allocations: 225.5 kB / 0.5855 GB, free: 6.949 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004518/0.2398, allocations: 416.4 kB / 0.5859 GB, free: 6.539 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006105/0.2404, allocations: 206.8 kB / 0.5861 GB, free: 6.328 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002024/0.2406, allocations: 370.8 kB / 0.5865 GB, free: 5.957 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003947/0.2446, allocations: 1.338 MB / 0.5878 GB, free: 4.621 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004063/0.2486, allocations: 1.505 MB / 0.5892 GB, free: 3.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007479/0.2561, allocations: 2.441 MB / 0.5916 GB, free: 0.582 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.2561, allocations: 0 / 0.5916 GB, free: 0.582 MB / 446.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.2556/0.5118, allocations: 2.827 MB / 0.5944 GB, free: 36.95 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.779e-05/0.5118, allocations: 6.625 kB / 0.5944 GB, free: 36.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.5118, allocations: 3.906 kB / 0.5944 GB, free: 36.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.257e-05/0.5118, allocations: 8.344 kB / 0.5944 GB, free: 36.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002891/0.5147, allocations: 408 kB / 0.5948 GB, free: 36.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.497e-05/0.5148, allocations: 15.59 kB / 0.5948 GB, free: 36.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002065/0.5168, allocations: 221.2 kB / 0.595 GB, free: 36.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001514/0.517, allocations: 40.97 kB / 0.5951 GB, free: 36.95 MB / 446.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.0004418/0.5174, allocations: 231.9 kB / 0.5953 GB, free: 36.84 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002236/0.5176, allocations: 63.83 kB / 0.5953 GB, free: 36.84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002792/0.5179, allocations: 108.3 kB / 0.5954 GB, free: 36.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.5179, allocations: 15 kB / 0.5955 GB, free: 36.82 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.5179, allocations: 0.8125 kB / 0.5955 GB, free: 36.82 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.5179, allocations: 11.14 kB / 0.5955 GB, free: 36.82 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0119/0.5298, allocations: 5.233 MB / 0.6006 GB, free: 34.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.714e-05/0.5299, allocations: 25.78 kB / 0.6006 GB, free: 34.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001568/0.5314, allocations: 356.4 kB / 0.6009 GB, free: 34.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.681e-05/0.5315, allocations: 27.72 kB / 0.601 GB, free: 34.77 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.5316, allocations: 48.7 kB / 0.601 GB, free: 34.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.661e-05/0.5316, allocations: 40.31 kB / 0.6011 GB, free: 34.74 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.757e-05/0.5316, allocations: 31.81 kB / 0.6011 GB, free: 34.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007263/0.5389, allocations: 3.093 MB / 0.6041 GB, free: 32.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004487/0.5394, allocations: 245.4 kB / 0.6043 GB, free: 32.81 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/0.5395, allocations: 51.84 kB / 0.6044 GB, free: 32.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001413/0.5409, allocations: 189.8 kB / 0.6046 GB, free: 32.78 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004902/0.5414, allocations: 218.3 kB / 0.6048 GB, free: 32.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-05/0.5415, allocations: 57.86 kB / 0.6048 GB, free: 32.68 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002698/0.5418, allocations: 263 kB / 0.6051 GB, free: 32.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5418, allocations: 0 / 0.6051 GB, free: 32.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009919/0.5428, allocations: 231.7 kB / 0.6053 GB, free: 32.51 MB / 446.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.007425/0.5502, allocations: 3.685 MB / 0.6089 GB, free: 30.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006697/0.5569, allocations: 2.161 MB / 0.611 GB, free: 29.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.392e-05/0.5569, allocations: 4.031 kB / 0.611 GB, free: 29.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003472/0.5604, allocations: 1.051 MB / 0.612 GB, free: 29.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001466/0.5619, allocations: 152.7 kB / 0.6122 GB, free: 29.12 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02549/0.5873, allocations: 12.39 MB / 0.6243 GB, free: 20.89 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003506/0.5877, allocations: 0.9243 MB / 0.6252 GB, free: 19.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009709/0.5887, allocations: 208.6 kB / 0.6254 GB, free: 19.74 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006845/0.5894, allocations: 219.4 kB / 0.6256 GB, free: 19.53 MB / 446.1 MB Notification: Performance of SimCode: time 7.11e-07/0.5894, allocations: 0 / 0.6256 GB, free: 19.53 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04231/0.6317, allocations: 21.69 MB / 0.6468 GB, free: 13.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.325/9.956, allocations: 4.562 kB / 0.6468 GB, free: 13.93 MB / 462.1 MB " [Timeout remaining time 650] (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.000598444 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.080623927060515] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y', 'integrator1.y', 'integrator2.y', 'integrator3.y'] 10.037897477857769 10.066537565 9.932384516 Calling exit ...