Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.conf.json 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/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001405/0.001405, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008236/0.0008237, allocations: 87.38 kB / 292.1 MB, free: 6 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2019/0.2019, allocations: 45.14 MB / 389.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.08e-05/4.095e-05, allocations: 4 kB / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1173, allocations: 63.24 MB / 0.5114 GB, free: 6.688 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4598/0.5772, allocations: 120.5 MB / 0.6291 GB, free: 5.785 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002286/0.5775, allocations: 77.03 kB / 0.6292 GB, free: 5.75 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7419/1.319, allocations: 179.3 MB / 0.8042 GB, free: 115.2 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.583e-06/1.319, allocations: 0 / 0.8042 GB, free: 115.2 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004102/1.32, allocations: 147.1 kB / 0.8044 GB, free: 115.2 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02353/1.343, allocations: 7.716 MB / 0.8119 GB, free: 112.3 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/1.343, allocations: 14.94 kB / 0.8119 GB, free: 112.3 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006736/1.35, allocations: 1.614 MB / 0.8135 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02985/1.38, allocations: 6.96 MB / 0.8203 GB, free: 111.6 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02184/1.402, allocations: 8.366 MB / 0.8285 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008139/1.403, allocations: 0.5668 MB / 0.829 GB, free: 110.6 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004508/1.407, allocations: 0.7671 MB / 0.8298 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05129/1.459, allocations: 20.56 MB / 0.8499 GB, free: 99.28 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008115/1.46, allocations: 99.11 kB / 0.85 GB, free: 99.18 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004092/1.464, allocations: 363.2 kB / 0.8503 GB, free: 98.88 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003086/1.467, allocations: 1.957 MB / 0.8522 GB, free: 97.28 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03745/1.504, allocations: 17.92 MB / 0.8697 GB, free: 80.52 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1068/1.611, allocations: 82.19 MB / 0.95 GB, free: 12.35 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01963/1.631, allocations: 7.309 MB / 0.9571 GB, free: 4.789 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006679/1.638, allocations: 3.933 MB / 0.961 GB, free: 0.832 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4118/2.049, allocations: 18.17 MB / 0.9787 GB, free: 117.1 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.169e-05/2.049, allocations: 67.59 kB / 0.9788 GB, free: 117.1 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=332): time 8.156e-06/2.049, allocations: 6.359 kB / 0.9788 GB, free: 117.1 MB / 0.5417 GB Notification: Performance of matching and sorting (n=413): time 0.08935/2.139, allocations: 25.88 MB / 1.004 GB, free: 112.9 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/2.139, allocations: 197.9 kB / 1.004 GB, free: 112.7 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01434/2.153, allocations: 5.646 MB / 1.01 GB, free: 112.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001207/2.155, allocations: 88.14 kB / 1.01 GB, free: 112.1 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.004802/2.159, allocations: 5.432 MB / 1.015 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.002471/2.162, allocations: 1.524 MB / 1.017 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001352/2.163, allocations: 206.9 kB / 1.017 GB, free: 108 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0006392/2.164, allocations: 0.752 MB / 1.018 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006351/2.17, allocations: 4.027 MB / 1.021 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00962/2.18, allocations: 9.861 MB / 1.031 GB, free: 96.93 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0101/2.19, allocations: 6.248 MB / 1.037 GB, free: 95.05 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000199/2.19, allocations: 60.19 kB / 1.037 GB, free: 95.05 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1373) (initialization): time 0.03512/2.225, allocations: 15.63 MB / 1.053 GB, free: 90 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002279/2.226, allocations: 94.53 kB / 1.053 GB, free: 90 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003457/2.226, allocations: 208.5 kB / 1.053 GB, free: 90 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0076/2.234, allocations: 2.34 MB / 1.055 GB, free: 89.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00964/2.243, allocations: 2.447 MB / 1.057 GB, free: 89.31 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01875/2.262, allocations: 11.52 MB / 1.069 GB, free: 81.56 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01032/2.272, allocations: 0.6834 MB / 1.069 GB, free: 81 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002592/2.275, allocations: 0.5872 MB / 1.07 GB, free: 80.42 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 934 * Number of states: 0 () * Number of discrete variables: 49 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1272): * Single equations (assignments): 1265 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003737/2.279, allocations: 0.8709 MB / 1.071 GB, free: 79.54 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001787/2.281, allocations: 0.6005 MB / 1.071 GB, free: 78.94 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01719/2.298, allocations: 8.09 MB / 1.079 GB, free: 72.37 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-05/2.298, allocations: 59.84 kB / 1.079 GB, free: 72.32 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.655e-05/2.298, allocations: 12 kB / 1.079 GB, free: 72.3 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.617e-05/2.298, allocations: 20.48 kB / 1.079 GB, free: 72.3 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04199/2.34, allocations: 18.73 MB / 1.098 GB, free: 56.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.854e-05/2.34, allocations: 8 kB / 1.098 GB, free: 56.71 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003282/2.343, allocations: 0.6459 MB / 1.098 GB, free: 56.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00657/2.35, allocations: 1.875 MB / 1.1 GB, free: 54.91 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008056/2.351, allocations: 86.88 kB / 1.1 GB, free: 54.83 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01544/2.366, allocations: 9.857 MB / 1.11 GB, free: 46.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.888e-06/2.366, allocations: 15.94 kB / 1.11 GB, free: 46.24 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02129/2.388, allocations: 14.17 MB / 1.124 GB, free: 33.07 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002849/2.391, allocations: 0.6287 MB / 1.124 GB, free: 32.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00234/2.393, allocations: 83.19 kB / 1.124 GB, free: 32.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004599/2.398, allocations: 262.7 kB / 1.125 GB, free: 32.19 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001088/2.399, allocations: 255.9 kB / 1.125 GB, free: 32.02 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006662/2.399, allocations: 110.4 kB / 1.125 GB, free: 31.91 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.009194/2.409, allocations: 3.91 MB / 1.129 GB, free: 28.47 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.062e-06/2.409, allocations: 4 kB / 1.129 GB, free: 28.47 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01433/2.423, allocations: 1.949 MB / 1.131 GB, free: 26.54 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (324): * Single equations (assignments): 317 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02535/2.448, allocations: 17.12 MB / 1.147 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01677/2.465, allocations: 9.635 MB / 1.157 GB, free: 1.723 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-05/2.465, allocations: 4 kB / 1.157 GB, free: 1.719 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00641/2.472, allocations: 3.289 MB / 1.16 GB, free: 14.47 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006722/2.478, allocations: 0.7116 MB / 1.161 GB, free: 13.78 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4156/2.894, allocations: 17.18 MB / 1.178 GB, free: 126.6 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01196/2.906, allocations: 5.744 MB / 1.183 GB, free: 125.7 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.009805/2.916, allocations: 3.334 MB / 1.186 GB, free: 125.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008371/2.924, allocations: 3.675 MB / 1.19 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of SimCode: time 2.976e-06/2.924, allocations: 1.969 kB / 1.19 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2266/3.151, allocations: 142.5 MB / 1.329 GB, free: 37.35 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001479/3.151, allocations: 180.4 kB / 1.329 GB, free: 37.12 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.664/9.815, allocations: 7.938 kB / 1.329 GB, free: 37.11 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSR_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSR.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat