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.001602/0.001602, allocations: 103.7 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.001866/0.001866, allocations: 212.6 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.556/1.556, 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.2557/0.2557, allocations: 46.12 MB / 344.2 MB, free: 11.58 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.002252/0.002252, allocations: 84.19 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1475, allocations: 62.45 MB / 480.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004815/0.1524, allocations: 2.411 MB / 482.6 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002351/0.1548, allocations: 0.9708 MB / 483.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001607/0.155, allocations: 11.94 kB / 483.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004047/0.1554, allocations: 119.2 kB / 483.7 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002341/0.1556, allocations: 99.38 kB / 483.8 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006301/0.1563, allocations: 283.5 kB / 484.1 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007597/0.157, allocations: 0.7096 MB / 484.8 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000188/0.1572, allocations: 65.33 kB / 484.9 MB, free: 492 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003565/0.1576, allocations: 303 kB / 485.2 MB, free: 188 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004268/0.158, allocations: 326.9 kB / 485.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001097/0.1582, allocations: 60 kB / 485.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.461e-05/0.1583, allocations: 60 kB / 485.6 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002371/0.1585, allocations: 191.4 kB / 485.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002824/0.1588, allocations: 242.7 kB / 486 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005481/0.1594, allocations: 0.5374 MB / 486.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1594, allocations: 0 / 486.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.889e-06/0.1594, allocations: 0 / 486.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.414e-05/0.1594, allocations: 3.938 kB / 486.6 MB, free: 14.78 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.002465/0.1619, allocations: 0.9353 MB / 487.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.999e-05/0.162, allocations: 8.031 kB / 487.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001395/0.1621, allocations: 90.7 kB / 487.6 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.1622, allocations: 64.38 kB / 487.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006492/0.1629, allocations: 367.2 kB / 488 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004118/0.1633, allocations: 263.7 kB / 488.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.1634, allocations: 48.22 kB / 488.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002159/0.1656, allocations: 0.8124 MB / 489.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.1656, allocations: 0 / 489.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.658e-05/0.1657, allocations: 20 kB / 489.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.847e-05/0.1657, allocations: 12 kB / 489.2 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003743/0.1695, allocations: 1.204 MB / 490.4 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003629/0.1731, allocations: 2.046 MB / 492.4 MB, free: 8.668 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003166/0.1763, allocations: 0.8305 MB / 493.2 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001568/0.1779, allocations: 493.8 kB / 493.7 MB, free: 7.336 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.195e-05/0.178, allocations: 4 kB / 493.7 MB, free: 7.332 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.472e-05/0.178, allocations: 50.48 kB / 493.8 MB, free: 7.273 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 3.116e-06/0.178, allocations: 0 / 493.8 MB, free: 7.273 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.08875/0.2668, allocations: 15.75 MB / 0.4976 GB, free: 7.348 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.457e-05/0.2669, allocations: 94.17 kB / 0.4977 GB, free: 7.238 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005376/0.2675, allocations: 389.5 kB / 0.498 GB, free: 6.848 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001674/0.2676, allocations: 45.7 kB / 0.4981 GB, free: 6.797 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001941/0.2678, allocations: 221 kB / 0.4983 GB, free: 6.574 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004457/0.2683, allocations: 406.1 kB / 0.4987 GB, free: 6.172 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005561/0.2689, allocations: 194.8 kB / 0.4989 GB, free: 5.973 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.2691, allocations: 374.8 kB / 0.4992 GB, free: 5.598 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003753/0.2728, allocations: 1.338 MB / 0.5005 GB, free: 4.262 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003977/0.2768, allocations: 1.501 MB / 0.502 GB, free: 2.715 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007048/0.2839, allocations: 2.441 MB / 0.5044 GB, free: 236 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.2839, allocations: 0 / 0.5044 GB, free: 236 kB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.2092/0.4931, allocations: 2.823 MB / 0.5071 GB, free: 43.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.4932, allocations: 6.375 kB / 0.5071 GB, free: 43.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.4932, allocations: 3.344 kB / 0.5072 GB, free: 43.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.4932, allocations: 11.5 kB / 0.5072 GB, free: 43.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002471/0.4957, allocations: 407.1 kB / 0.5075 GB, free: 43.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.56e-05/0.4957, allocations: 17.2 kB / 0.5076 GB, free: 43.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001767/0.4975, allocations: 217.3 kB / 0.5078 GB, free: 43.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001232/0.4976, allocations: 39.8 kB / 0.5078 GB, free: 43.26 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.000361/0.498, allocations: 230.8 kB / 0.508 GB, free: 43.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001908/0.4982, allocations: 69.94 kB / 0.5081 GB, free: 43.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001865/0.4984, allocations: 112.4 kB / 0.5082 GB, free: 42.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.4984, allocations: 16.22 kB / 0.5082 GB, free: 42.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/0.4984, allocations: 1.25 kB / 0.5082 GB, free: 42.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.4984, allocations: 5.438 kB / 0.5082 GB, free: 42.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009462/0.5079, allocations: 5.221 MB / 0.5133 GB, free: 40.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.899e-05/0.5079, allocations: 23.56 kB / 0.5133 GB, free: 40.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001337/0.5093, allocations: 357.7 kB / 0.5137 GB, free: 40.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.112e-05/0.5093, allocations: 27.12 kB / 0.5137 GB, free: 40.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.431e-05/0.5094, allocations: 51.48 kB / 0.5138 GB, free: 40.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.469e-05/0.5094, allocations: 41.02 kB / 0.5138 GB, free: 40.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.641e-05/0.5094, allocations: 35.59 kB / 0.5138 GB, free: 40.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006069/0.5155, allocations: 3.084 MB / 0.5168 GB, free: 38.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002486/0.5158, allocations: 241.6 kB / 0.5171 GB, free: 38.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/0.5159, allocations: 53.58 kB / 0.5171 GB, free: 38.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001148/0.517, allocations: 189.8 kB / 0.5173 GB, free: 38.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003417/0.5174, allocations: 221.3 kB / 0.5175 GB, free: 38.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.306e-05/0.5175, allocations: 59.88 kB / 0.5176 GB, free: 38.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002087/0.5177, allocations: 263.9 kB / 0.5178 GB, free: 38.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5177, allocations: 0 / 0.5178 GB, free: 38.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008004/0.5185, allocations: 231.7 kB / 0.5181 GB, free: 38.29 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.006117/0.5246, allocations: 3.672 MB / 0.5216 GB, free: 36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005202/0.5298, allocations: 2.411 MB / 0.524 GB, free: 35.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.5298, allocations: 3.594 kB / 0.524 GB, free: 35.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002699/0.5325, allocations: 1.068 MB / 0.525 GB, free: 34.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.5336, allocations: 154.1 kB / 0.5252 GB, free: 34.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02141/0.555, allocations: 12.47 MB / 0.5374 GB, free: 22.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.5554, allocations: 0.9281 MB / 0.5383 GB, free: 21.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001191/0.5566, allocations: 213 kB / 0.5385 GB, free: 21.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005573/0.5572, allocations: 215.4 kB / 0.5387 GB, free: 21.27 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.5572, allocations: 0 / 0.5387 GB, free: 21.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1657/0.7229, allocations: 21.56 MB / 0.5597 GB, free: 15.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.355/9.078, allocations: 17.98 kB / 0.5597 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1)