Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.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.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Spring",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.001076/0.001076, allocations: 97.38 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001714/0.001715, allocations: 173.4 kB / 16.57 MB, free: 6.391 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.478/1.478, allocations: 205.4 MB / 222.7 MB, free: 5.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4066/0.4066, allocations: 43.54 MB / 314.5 MB, free: 8.746 MB / 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.0005395/0.0005395, allocations: 16 kB / 384 MB, free: 7.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1529/0.1534, allocations: 58.85 MB / 442.8 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.2797/0.4332, allocations: 36.66 MB / 479.5 MB, free: 28.79 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02055/0.4538, allocations: 9.121 MB / 488.6 MB, free: 22.63 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01025/0.4641, allocations: 182.8 kB / 488.8 MB, free: 22.6 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008495/0.4727, allocations: 1.794 MB / 490.6 MB, free: 22 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01883/0.4916, allocations: 5.344 MB / 495.9 MB, free: 19.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002929/0.4945, allocations: 0.6543 MB / 496.6 MB, free: 19.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005175/0.4997, allocations: 2.516 MB / 499.1 MB, free: 18.19 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007352/0.5071, allocations: 4.131 MB / 0.4915 GB, free: 16.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002806/0.51, allocations: 1.084 MB / 0.4925 GB, free: 16.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003686/0.5137, allocations: 1.522 MB / 0.494 GB, free: 15.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001009/0.5147, allocations: 151.2 kB / 0.4941 GB, free: 15.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002688/0.5174, allocations: 0.6996 MB / 0.4948 GB, free: 15.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002494/0.5199, allocations: 1.603 MB / 0.4964 GB, free: 15.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002305/0.5222, allocations: 0.8319 MB / 0.4972 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01181/0.5341, allocations: 5.251 MB / 0.5023 GB, free: 12.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.5341, allocations: 0 / 0.5023 GB, free: 12.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.17e-06/0.5342, allocations: 0 / 0.5023 GB, free: 12.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004225/0.5346, allocations: 0 / 0.5023 GB, free: 12.75 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: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.01556/0.5502, allocations: 4.047 MB / 0.5063 GB, free: 9.949 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.061e-05/0.5503, allocations: 9.594 kB / 0.5063 GB, free: 9.949 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003121/0.5534, allocations: 0.7377 MB / 0.507 GB, free: 9.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01012/0.5635, allocations: 2.291 MB / 0.5093 GB, free: 8.297 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008964/0.5725, allocations: 2.79 MB / 0.512 GB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003055/0.5729, allocations: 252.1 kB / 0.5122 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001753/0.5747, allocations: 330.3 kB / 0.5125 GB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02104/0.5957, allocations: 10.29 MB / 0.5226 GB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000154/0.5959, allocations: 47.53 kB / 0.5226 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006022/0.5965, allocations: 163.8 kB / 0.5228 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003199/0.5997, allocations: 1.912 MB / 0.5246 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01966/0.6194, allocations: 8.236 MB / 0.5327 GB, free: 3.023 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05787/0.6773, allocations: 39.58 MB / 0.5713 GB, free: 10.29 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009546/0.6869, allocations: 3.275 MB / 0.5745 GB, free: 6.84 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01072/0.6977, allocations: 5.99 MB / 0.5804 GB, free: 496 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.801e-05/0.6978, allocations: 55.5 kB / 0.5804 GB, free: 432 kB / 446.1 MB Notification: Performance of pre-optimization done (n=148): time 5.971e-06/0.6978, allocations: 0 / 0.5804 GB, free: 432 kB / 446.1 MB Notification: Performance of matching and sorting (n=160): time 0.02708/0.7249, allocations: 9.82 MB / 0.59 GB, free: 6.438 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.725, allocations: 145.5 kB / 0.5902 GB, free: 6.266 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00761/0.7326, allocations: 4.299 MB / 0.5944 GB, free: 1.941 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004868/0.7332, allocations: 45.7 kB / 0.5944 GB, free: 1.891 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003023/0.7362, allocations: 3.191 MB / 0.5975 GB, free: 14.65 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001013/0.7372, allocations: 0.6404 MB / 0.5982 GB, free: 14 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000274/0.7375, allocations: 120 kB / 0.5983 GB, free: 13.88 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0005565/0.7381, allocations: 0.562 MB / 0.5988 GB, free: 13.32 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003368/0.7415, allocations: 1.616 MB / 0.6004 GB, free: 11.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005983/0.7475, allocations: 5.446 MB / 0.6057 GB, free: 4.312 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005319/0.7528, allocations: 2.902 MB / 0.6086 GB, free: 1.414 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001092/0.753, allocations: 40 kB / 0.6086 GB, free: 1.375 MB / 478.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01541/0.7684, allocations: 6.812 MB / 0.6152 GB, free: 10.55 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001235/0.7686, allocations: 67.98 kB / 0.6153 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001812/0.7688, allocations: 136 kB / 0.6154 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002389/0.769, allocations: 200 kB / 0.6156 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00529/0.7743, allocations: 1.42 MB / 0.617 GB, free: 8.738 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002482/0.7746, allocations: 275.6 kB / 0.6173 GB, free: 8.469 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005201/0.7798, allocations: 292.1 kB / 0.6176 GB, free: 8.184 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001235/0.781, allocations: 376 kB / 0.6179 GB, free: 7.816 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (767): * Single equations (assignments): 764 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004828/0.7859, allocations: 2.044 MB / 0.6199 GB, free: 5.758 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008907/0.7868, allocations: 355.4 kB / 0.6202 GB, free: 5.406 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002574/0.7894, allocations: 1.337 MB / 0.6216 GB, free: 4.055 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.518e-05/0.7894, allocations: 23.94 kB / 0.6216 GB, free: 4.031 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.7894, allocations: 0 / 0.6216 GB, free: 4.031 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.7895, allocations: 7.969 kB / 0.6216 GB, free: 4.023 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.014/0.8035, allocations: 5.848 MB / 0.6273 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-05/0.8036, allocations: 16 kB / 0.6273 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001099/0.8047, allocations: 283.5 kB / 0.6276 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.541e-05/0.8047, allocations: 24 kB / 0.6276 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-05/0.8048, allocations: 52.62 kB / 0.6277 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.89e-05/0.8049, allocations: 35.86 kB / 0.6277 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.942e-05/0.8049, allocations: 31.88 kB / 0.6277 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005798/0.8107, allocations: 5.293 MB / 0.6329 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001764/0.8125, allocations: 0.5393 MB / 0.6334 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004266/0.8129, allocations: 55.88 kB / 0.6335 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001148/0.8141, allocations: 63.95 kB / 0.6335 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001725/0.8143, allocations: 143.5 kB / 0.6337 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.619e-05/0.8144, allocations: 68 kB / 0.6337 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004729/0.8191, allocations: 2.692 MB / 0.6364 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2e-07/0.8191, allocations: 4 kB / 0.6364 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005862/0.825, allocations: 0.918 MB / 0.6373 GB, free: 2.832 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.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 (145): * Single equations (assignments): 142 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2678/1.093, allocations: 10.14 MB / 0.6472 GB, free: 147.6 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006919/1.1, allocations: 3.733 MB / 0.6508 GB, free: 147.2 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.606e-05/1.1, allocations: 2.781 kB / 0.6508 GB, free: 147.2 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001101/1.101, allocations: 0.7384 MB / 0.6515 GB, free: 147.2 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002852/1.104, allocations: 441.1 kB / 0.652 GB, free: 147.2 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04734/1.151, allocations: 114.1 MB / 0.7634 GB, free: 35.96 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004695/1.156, allocations: 3.27 MB / 0.7666 GB, free: 34.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005126/1.161, allocations: 1.82 MB / 0.7684 GB, free: 34.54 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003872/1.165, allocations: 1.882 MB / 0.7702 GB, free: 33.02 MB / 0.4981 GB Notification: Performance of SimCode: time 1.222e-06/1.165, allocations: 0 / 0.7702 GB, free: 33.02 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1292/1.294, allocations: 67.75 MB / 0.8364 GB, free: 2.52 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001835/1.294, allocations: 163.1 kB / 0.8365 GB, free: 2.285 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.227/5.521, allocations: 0 / 0.8365 GB, free: 2.285 MB / 0.5137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Spring_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring_res.mat does not exist to compare? outputFormat=mat