Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointSSR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001224/0.001224, allocations: 183.2 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.767/1.767, allocations: 205.2 MB / 218.9 MB, free: 9.199 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001083/0.001083, allocations: 89.56 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4213/0.4213, allocations: 43.47 MB / 358.6 MB, free: 51.61 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.653e-05/5.655e-05, allocations: 7.984 kB / 425.4 MB, free: 8.102 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1545, allocations: 58.84 MB / 484.2 MB, free: 13.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5148/0.6694, allocations: 116.1 MB / 0.5863 GB, free: 5.777 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/0.6697, allocations: 77.45 kB / 0.5864 GB, free: 5.738 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7596/1.429, allocations: 154.7 MB / 0.7375 GB, free: 87.26 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.402e-06/1.429, allocations: 0 / 0.7375 GB, free: 87.26 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004569/1.43, allocations: 136.5 kB / 0.7376 GB, free: 87.26 MB / 0.4948 GB 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.02828/1.458, allocations: 6.555 MB / 0.744 GB, free: 84.55 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.678e-05/1.458, allocations: 9.969 kB / 0.744 GB, free: 84.55 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008809/1.467, allocations: 1.486 MB / 0.7455 GB, free: 84.44 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03207/1.499, allocations: 6.681 MB / 0.752 GB, free: 83.93 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02427/1.523, allocations: 8.404 MB / 0.7602 GB, free: 83.04 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009219/1.524, allocations: 0.5274 MB / 0.7607 GB, free: 83.03 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00495/1.529, allocations: 0.709 MB / 0.7614 GB, free: 83.02 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05123/1.581, allocations: 18.7 MB / 0.7797 GB, free: 76.69 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006728/1.581, allocations: 83.69 kB / 0.7797 GB, free: 76.64 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004247/1.586, allocations: 336.5 kB / 0.7801 GB, free: 76.45 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002906/1.589, allocations: 1.733 MB / 0.7817 GB, free: 76.13 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04366/1.632, allocations: 16.22 MB / 0.7976 GB, free: 71.12 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1054/1.738, allocations: 74.22 MB / 0.8701 GB, free: 7.957 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01518/1.753, allocations: 6.111 MB / 0.876 GB, free: 1.594 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004673/1.758, allocations: 2.698 MB / 0.8787 GB, free: 14.89 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02916/1.787, allocations: 13.91 MB / 0.8923 GB, free: 388 kB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.779e-05/1.787, allocations: 56.56 kB / 0.8923 GB, free: 324 kB / 0.5105 GB Notification: Performance of pre-optimization done (n=284): time 6.913e-06/1.787, allocations: 0 / 0.8923 GB, free: 324 kB / 0.5105 GB Notification: Performance of matching and sorting (n=344): time 0.4683/2.255, allocations: 19.32 MB / 0.9112 GB, free: 95.94 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/2.256, allocations: 187.8 kB / 0.9114 GB, free: 95.75 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0115/2.267, allocations: 5.168 MB / 0.9164 GB, free: 95.29 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008784/2.268, allocations: 76.98 kB / 0.9165 GB, free: 95.26 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004712/2.273, allocations: 5.017 MB / 0.9214 GB, free: 92.73 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002061/2.275, allocations: 1.275 MB / 0.9226 GB, free: 91.99 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00094/2.276, allocations: 189 kB / 0.9228 GB, free: 91.99 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005885/2.276, allocations: 0.7135 MB / 0.9235 GB, free: 91.66 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005456/2.282, allocations: 3.141 MB / 0.9266 GB, free: 91.64 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01004/2.292, allocations: 8.602 MB / 0.935 GB, free: 84.63 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0106/2.303, allocations: 5.203 MB / 0.94 GB, free: 84.56 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003979/2.303, allocations: 55.25 kB / 0.9401 GB, free: 84.56 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.03321/2.336, allocations: 12.53 MB / 0.9523 GB, free: 82.99 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001957/2.336, allocations: 85.25 kB / 0.9524 GB, free: 82.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003249/2.337, allocations: 192.1 kB / 0.9526 GB, free: 82.99 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004627/2.341, allocations: 1.324 MB / 0.9539 GB, free: 82.76 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008526/2.35, allocations: 2.186 MB / 0.956 GB, free: 82.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0119/2.362, allocations: 7.104 MB / 0.963 GB, free: 78.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01088/2.373, allocations: 0.5635 MB / 0.9635 GB, free: 78.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003829/2.377, allocations: 0.5468 MB / 0.964 GB, free: 78.53 MB / 0.5105 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 () * 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.005618/2.382, allocations: 0.8098 MB / 0.9648 GB, free: 77.87 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001752/2.384, allocations: 0.5266 MB / 0.9654 GB, free: 77.57 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01172/2.396, allocations: 5.269 MB / 0.9705 GB, free: 75.64 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.587e-05/2.396, allocations: 35.88 kB / 0.9705 GB, free: 75.64 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.506e-05/2.396, allocations: 9.188 kB / 0.9705 GB, free: 75.64 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-05/2.396, allocations: 14.53 kB / 0.9706 GB, free: 75.64 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03204/2.428, allocations: 14.06 MB / 0.9843 GB, free: 70.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.153e-05/2.428, allocations: 11.06 kB / 0.9843 GB, free: 70.12 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002341/2.43, allocations: 0.5362 MB / 0.9848 GB, free: 70.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00335/2.434, allocations: 0.9094 MB / 0.9857 GB, free: 69.89 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004595/2.434, allocations: 70.44 kB / 0.9858 GB, free: 69.85 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007895/2.442, allocations: 5.409 MB / 0.9911 GB, free: 66.85 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.1e-05/2.442, allocations: 22.27 kB / 0.9911 GB, free: 66.84 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01447/2.457, allocations: 10.15 MB / 1.001 GB, free: 61.01 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003238/2.46, allocations: 0.9458 MB / 1.002 GB, free: 60.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001224/2.461, allocations: 61.66 kB / 1.002 GB, free: 60.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002551/2.464, allocations: 194.6 kB / 1.002 GB, free: 60.37 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004709/2.464, allocations: 217.2 kB / 1.002 GB, free: 60.32 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00022/2.465, allocations: 97.91 kB / 1.002 GB, free: 60.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006862/2.471, allocations: 3.574 MB / 1.006 GB, free: 59.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.4e-07/2.471, allocations: 0 / 1.006 GB, free: 59.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01186/2.483, allocations: 1.659 MB / 1.008 GB, free: 58.9 MB / 0.5105 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 () * 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.01544/2.499, allocations: 13.18 MB / 1.02 GB, free: 49.34 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01392/2.513, allocations: 7.62 MB / 1.028 GB, free: 42.31 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.852e-05/2.513, allocations: 4 kB / 1.028 GB, free: 42.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003793/2.517, allocations: 2.363 MB / 1.03 GB, free: 40.12 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005231/2.522, allocations: 0.6356 MB / 1.031 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04119/2.563, allocations: 15.06 MB / 1.046 GB, free: 26.26 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01002/2.573, allocations: 5.328 MB / 1.051 GB, free: 22.31 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008857/2.582, allocations: 3.051 MB / 1.054 GB, free: 20.38 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007203/2.589, allocations: 3.341 MB / 1.057 GB, free: 17.27 MB / 0.5105 GB Notification: Performance of SimCode: time 1.713e-06/2.589, allocations: 0 / 1.057 GB, free: 17.27 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5446/3.134, allocations: 123.9 MB / 1.178 GB, free: 83.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001461/3.134, allocations: 176.1 kB / 1.178 GB, free: 83.47 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.022/9.157, allocations: 0 / 1.178 GB, free: 83.47 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointSSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointSSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointSSR.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat does not exist to compare? outputFormat=mat