Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 183.8 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008857/0.0008857, allocations: 104.5 kB / 292.1 MB, free: 10.89 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3369/0.3369, allocations: 44.22 MB / 387.5 MB, free: 38.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003874/0.0003875, allocations: 8 kB / 460 MB, free: 1.426 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4037/0.4041, allocations: 61.9 MB / 0.5096 GB, free: 38.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1379/0.542, allocations: 118.3 MB / 0.6251 GB, free: 8.781 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002258/0.5423, allocations: 87.94 kB / 0.6252 GB, free: 8.699 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6916/1.234, allocations: 156.4 MB / 0.7779 GB, free: 58.25 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.438e-06/1.234, allocations: 0 / 0.7779 GB, free: 58.25 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0009441/1.235, allocations: 132 kB / 0.7781 GB, free: 58.12 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2564 * Number of variables: 2564 Notification: Performance of Generate backend data structure: time 0.03636/1.271, allocations: 6.952 MB / 0.7848 GB, free: 51.13 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.785e-05/1.271, allocations: 8.031 kB / 0.7849 GB, free: 51.12 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00883/1.28, allocations: 1.492 MB / 0.7863 GB, free: 49.66 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04189/1.322, allocations: 6.668 MB / 0.7928 GB, free: 42.98 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02814/1.35, allocations: 7.986 MB / 0.8006 GB, free: 35.04 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008919/1.351, allocations: 0.5241 MB / 0.8011 GB, free: 34.55 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005488/1.357, allocations: 0.7104 MB / 0.8018 GB, free: 33.89 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05145/1.408, allocations: 18.88 MB / 0.8203 GB, free: 13.81 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006211/1.409, allocations: 79.28 kB / 0.8203 GB, free: 13.73 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004368/1.413, allocations: 337.5 kB / 0.8207 GB, free: 13.45 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002851/1.416, allocations: 1.727 MB / 0.8224 GB, free: 11.73 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03729/1.454, allocations: 16.55 MB / 0.8385 GB, free: 11.16 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4486/1.902, allocations: 74.15 MB / 0.9109 GB, free: 63.16 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01396/1.916, allocations: 6.161 MB / 0.9169 GB, free: 61.92 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02093/1.937, allocations: 13.87 MB / 0.9305 GB, free: 57.58 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.186e-05/1.937, allocations: 59.66 kB / 0.9305 GB, free: 57.54 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=284): time 5.771e-06/1.937, allocations: 0 / 0.9305 GB, free: 57.54 MB / 0.5261 GB Notification: Performance of matching and sorting (n=344): time 0.08339/2.021, allocations: 24.59 MB / 0.9546 GB, free: 52.84 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.17e-05/2.021, allocations: 186.7 kB / 0.9547 GB, free: 52.65 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008889/2.03, allocations: 5.239 MB / 0.9599 GB, free: 52.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007032/2.031, allocations: 74.42 kB / 0.9599 GB, free: 52.17 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002792/2.033, allocations: 4.999 MB / 0.9648 GB, free: 49.29 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001398/2.035, allocations: 1.287 MB / 0.9661 GB, free: 48.55 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004371/2.035, allocations: 185 kB / 0.9662 GB, free: 48.55 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004038/2.036, allocations: 0.7061 MB / 0.9669 GB, free: 48.23 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004809/2.04, allocations: 3.273 MB / 0.9701 GB, free: 48.2 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007622/2.048, allocations: 8.719 MB / 0.9786 GB, free: 39.81 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007639/2.056, allocations: 5.249 MB / 0.9838 GB, free: 38.03 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001519/2.056, allocations: 54.94 kB / 0.9838 GB, free: 38.03 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.02821/2.084, allocations: 12.77 MB / 0.9963 GB, free: 33.88 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003886/2.085, allocations: 87.28 kB / 0.9964 GB, free: 33.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004935/2.085, allocations: 193.4 kB / 0.9966 GB, free: 33.88 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004504/2.09, allocations: 1.323 MB / 0.9978 GB, free: 33.65 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007649/2.097, allocations: 2.185 MB / 1 GB, free: 33.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01117/2.108, allocations: 7.408 MB / 1.007 GB, free: 29.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008128/2.117, allocations: 0.5631 MB / 1.008 GB, free: 29.32 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001994/2.119, allocations: 0.5414 MB / 1.008 GB, free: 29.25 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 879 * Number of states: 0 () * Number of discrete variables: 46 (jointSSR.revolute.positiveBranch,Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],FixedFrame1.color_x[3],FixedFrame1.color_x[2],FixedFrame1.color_x[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1155): * Single equations (assignments): 1148 * 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%) 37} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008428/2.127, allocations: 3.454 MB / 1.012 GB, free: 27.66 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001692/2.129, allocations: 0.5284 MB / 1.012 GB, free: 27.37 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01353/2.142, allocations: 5.33 MB / 1.017 GB, free: 23.64 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-05/2.142, allocations: 39.44 kB / 1.017 GB, free: 23.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.175e-05/2.143, allocations: 11.84 kB / 1.017 GB, free: 23.59 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.66e-05/2.143, allocations: 11.48 kB / 1.017 GB, free: 23.59 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03759/2.18, allocations: 14.09 MB / 1.031 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.306e-05/2.18, allocations: 8 kB / 1.031 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002566/2.183, allocations: 0.5425 MB / 1.032 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003501/2.186, allocations: 0.9184 MB / 1.033 GB, free: 10.73 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006695/2.187, allocations: 71.19 kB / 1.033 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008759/2.196, allocations: 5.69 MB / 1.038 GB, free: 5.543 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.185e-05/2.196, allocations: 15.94 kB / 1.038 GB, free: 5.527 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0235/2.219, allocations: 10.74 MB / 1.049 GB, free: 12.98 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001947/2.221, allocations: 0.5698 MB / 1.049 GB, free: 12.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001672/2.223, allocations: 63.47 kB / 1.049 GB, free: 12.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003318/2.226, allocations: 188 kB / 1.05 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007682/2.227, allocations: 217.4 kB / 1.05 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004778/2.228, allocations: 108.3 kB / 1.05 GB, free: 11.97 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00804/2.236, allocations: 3.639 MB / 1.053 GB, free: 9.023 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.6e-07/2.236, allocations: 0 / 1.053 GB, free: 9.023 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01133/2.247, allocations: 1.658 MB / 1.055 GB, free: 7.383 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 2 (j2.s,j2.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 (267): * Single equations (assignments): 260 * 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%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02148/2.269, allocations: 13.25 MB / 1.068 GB, free: 10.72 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01466/2.283, allocations: 7.785 MB / 1.076 GB, free: 3.816 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-05/2.283, allocations: 4 kB / 1.076 GB, free: 3.812 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.004926/2.288, allocations: 2.396 MB / 1.078 GB, free: 1.668 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004794/2.293, allocations: 0.6385 MB / 1.079 GB, free: 1.125 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3799/2.673, allocations: 167.2 MB / 1.242 GB, free: 31.93 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008599/2.682, allocations: 5.317 MB / 1.247 GB, free: 31.05 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.00793/2.69, allocations: 3.051 MB / 1.25 GB, free: 30.83 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005781/2.695, allocations: 3.371 MB / 1.253 GB, free: 30.82 MB / 0.6042 GB Notification: Performance of SimCode: time 1.293e-06/2.696, allocations: 4 kB / 1.253 GB, free: 30.82 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4726/3.168, allocations: 121.4 MB / 1.372 GB, free: 167.9 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001593/3.168, allocations: 199.1 kB / 1.372 GB, free: 167.7 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.644/9.812, allocations: 1.344 kB / 1.372 GB, free: 167.7 MB / 0.6042 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointSSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointSSR.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat does not exist to compare? outputFormat=mat