Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.PrismaticInit.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.MultiBody.Joints.PrismaticInit,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_PrismaticInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.PrismaticInit,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_PrismaticInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001529/0.001529, 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.001524/0.001524, 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.492/1.492, allocations: 227.4 MB / 246.8 MB, free: 10.61 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.2514/0.2514, allocations: 46.13 MB / 344.2 MB, free: 11.59 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.002239/0.002239, allocations: 80.64 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.148, allocations: 62.46 MB / 480.2 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.PrismaticInit): time 0.01201/0.1601, allocations: 8.637 MB / 488.9 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007587/0.1677, allocations: 3.463 MB / 492.3 MB, free: 9.012 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001364/0.1691, allocations: 43.88 kB / 492.4 MB, free: 8.969 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002844/0.172, allocations: 1.374 MB / 493.7 MB, free: 7.59 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002624/0.1746, allocations: 0.9027 MB / 494.6 MB, free: 6.684 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001285/0.1759, allocations: 0.5147 MB / 495.2 MB, free: 6.168 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002634/0.1786, allocations: 1.718 MB / 496.9 MB, free: 4.445 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002231/0.1808, allocations: 1.667 MB / 498.5 MB, free: 2.734 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001093/0.1819, allocations: 0.6542 MB / 499.2 MB, free: 2.078 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001176/0.1831, allocations: 0.8918 MB / 0.4884 GB, free: 1.184 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000216/0.1834, allocations: 136 kB / 0.4885 GB, free: 1.051 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001134/0.1845, allocations: 0.5656 MB / 0.489 GB, free: 496 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008057/0.1853, allocations: 0.7247 MB / 0.4898 GB, free: 15.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.1863, allocations: 0.8314 MB / 0.4906 GB, free: 14.92 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00379/0.1901, allocations: 2.418 MB / 0.4929 GB, free: 12.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.1902, allocations: 0 / 0.4929 GB, free: 12.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.806e-05/0.1902, allocations: 4 kB / 0.4929 GB, free: 12.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.792e-05/0.1902, allocations: 3.938 kB / 0.4929 GB, free: 12.49 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: 449 * Number of variables: 449 Notification: Performance of Generate backend data structure: time 0.004504/0.1948, allocations: 1.998 MB / 0.4949 GB, free: 10.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.849e-05/0.1948, allocations: 8.031 kB / 0.4949 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003117/0.1951, allocations: 245.5 kB / 0.4951 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001286/0.1964, allocations: 270.6 kB / 0.4954 GB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002376/0.1988, allocations: 1.262 MB / 0.4966 GB, free: 8.605 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.028e-05/0.1989, allocations: 98.39 kB / 0.4967 GB, free: 8.508 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002141/0.1991, allocations: 131.9 kB / 0.4968 GB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005789/0.2049, allocations: 3 MB / 0.4998 GB, free: 5.188 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.411e-05/0.205, allocations: 7.938 kB / 0.4998 GB, free: 5.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001388/0.2052, allocations: 59.97 kB / 0.4998 GB, free: 5.121 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000674/0.2058, allocations: 426 kB / 0.5002 GB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005124/0.211, allocations: 2.183 MB / 0.5024 GB, free: 2.512 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3059/0.5169, allocations: 10.73 MB / 0.5128 GB, free: 34.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004371/0.5213, allocations: 1.259 MB / 0.5141 GB, free: 34.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000655/0.522, allocations: 412.9 kB / 0.5145 GB, free: 34.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004235/0.5263, allocations: 3.071 MB / 0.5175 GB, free: 32.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/0.5263, allocations: 38.62 kB / 0.5175 GB, free: 32.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=51): time 2.594e-06/0.5263, allocations: 0 / 0.5175 GB, free: 32.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=57): time 0.01301/0.5393, allocations: 3.785 MB / 0.5212 GB, free: 30.78 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.924e-05/0.5394, allocations: 83.98 kB / 0.5213 GB, free: 30.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.5412, allocations: 1.197 MB / 0.5225 GB, free: 30.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.8e-05/0.5412, allocations: 36.02 kB / 0.5225 GB, free: 30.17 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000609/0.5418, allocations: 0.9398 MB / 0.5234 GB, free: 29.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/0.542, allocations: 216 kB / 0.5236 GB, free: 29.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004308/0.5424, allocations: 309.4 kB / 0.5239 GB, free: 29.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.4e-05/0.5425, allocations: 302.8 kB / 0.5242 GB, free: 28.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006966/0.5432, allocations: 411.8 kB / 0.5246 GB, free: 28.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001108/0.5443, allocations: 1.252 MB / 0.5258 GB, free: 27.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001802/0.5461, allocations: 1.801 MB / 0.5276 GB, free: 25.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.658e-05/0.5462, allocations: 8.5 kB / 0.5276 GB, free: 25.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.002728/0.5489, allocations: 1.715 MB / 0.5293 GB, free: 25.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.215e-05/0.549, allocations: 19.66 kB / 0.5293 GB, free: 25.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.873e-05/0.549, allocations: 30.97 kB / 0.5293 GB, free: 25.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000248/0.5492, allocations: 83.34 kB / 0.5294 GB, free: 25.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/0.5503, allocations: 357 kB / 0.5297 GB, free: 25.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.5517, allocations: 1.88 MB / 0.5316 GB, free: 23.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.5528, allocations: 66.48 kB / 0.5316 GB, free: 23.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.5529, allocations: 88.83 kB / 0.5317 GB, free: 23.26 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * Number of states: 0 () * Number of discrete variables: 27 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (190): * Single equations (assignments): 189 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009351/0.5539, allocations: 0.6455 MB / 0.5323 GB, free: 22.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001873/0.5541, allocations: 116 kB / 0.5324 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002205/0.5543, allocations: 133.2 kB / 0.5326 GB, free: 22.69 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.5543, allocations: 6.188 kB / 0.5326 GB, free: 22.69 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.788e-05/0.5543, allocations: 3.531 kB / 0.5326 GB, free: 22.69 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.5544, allocations: 3.984 kB / 0.5326 GB, free: 22.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003104/0.5575, allocations: 2.25 MB / 0.5348 GB, free: 21.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.5575, allocations: 3.906 kB / 0.5348 GB, free: 21.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003538/0.5579, allocations: 101.3 kB / 0.5349 GB, free: 21.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001844/0.558, allocations: 67.91 kB / 0.5349 GB, free: 21.17 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.123e-05/0.5581, allocations: 11.97 kB / 0.535 GB, free: 21.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001335/0.5594, allocations: 1.941 MB / 0.5369 GB, free: 19.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/0.5595, allocations: 7.75 kB / 0.5369 GB, free: 19.35 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001362/0.5608, allocations: 1.111 MB / 0.5379 GB, free: 18.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002826/0.5611, allocations: 183.5 kB / 0.5381 GB, free: 18.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.5612, allocations: 15.31 kB / 0.5381 GB, free: 18.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003593/0.5616, allocations: 32.38 kB / 0.5382 GB, free: 18.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.663e-05/0.5617, allocations: 48.64 kB / 0.5382 GB, free: 18.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/0.5617, allocations: 20.84 kB / 0.5382 GB, free: 18.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009695/0.5627, allocations: 0.7571 MB / 0.539 GB, free: 17.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5627, allocations: 0 / 0.539 GB, free: 17.97 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001726/0.5644, allocations: 297.7 kB / 0.5393 GB, free: 17.94 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 2 (prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001566/0.566, allocations: 1.681 MB / 0.5409 GB, free: 16.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001866/0.5679, allocations: 1.2 MB / 0.5421 GB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/0.5679, allocations: 1.5 kB / 0.5421 GB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005014/0.5684, allocations: 423.3 kB / 0.5425 GB, free: 14.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.5695, allocations: 189.7 kB / 0.5427 GB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01415/0.5837, allocations: 12.04 MB / 0.5544 GB, free: 1.164 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001278/0.585, allocations: 1.443 MB / 0.5558 GB, free: 15.69 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00117/0.5862, allocations: 413.5 kB / 0.5562 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008338/0.587, allocations: 0.5774 MB / 0.5568 GB, free: 14.71 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.5871, allocations: 0 / 0.5568 GB, free: 14.71 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06511/0.6522, allocations: 22.49 MB / 0.5787 GB, free: 8.426 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/11.14, allocations: 10.83 kB / 0.5787 GB, free: 8.422 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.PrismaticInit.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.PrismaticInit_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_PrismaticInit.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.PrismaticInit.pipe 2>&1)