Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.001498/0.001498, allocations: 186.2 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.224/2.224, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001149/0.001148, allocations: 94.09 kB / 270.9 MB, free: 8.379 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.5259/0.5259, allocations: 43.54 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004786/0.0004788, allocations: 16 kB / 431.5 MB, free: 6.07 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1349, allocations: 58.84 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5226/0.6575, allocations: 116.2 MB / 0.5923 GB, free: 2.293 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004714/0.6581, allocations: 83.95 kB / 0.5924 GB, free: 2.211 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9889/1.647, allocations: 154.6 MB / 0.7434 GB, free: 87.64 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.376e-06/1.647, allocations: 0 / 0.7434 GB, free: 87.64 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000438/1.647, allocations: 127.7 kB / 0.7435 GB, free: 87.64 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.0306/1.678, allocations: 6.987 MB / 0.7503 GB, free: 84.17 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/1.678, allocations: 7.75 kB / 0.7503 GB, free: 84.17 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007737/1.686, allocations: 1.498 MB / 0.7518 GB, free: 83.55 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0515/1.737, allocations: 6.671 MB / 0.7583 GB, free: 82.69 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03156/1.769, allocations: 8.43 MB / 0.7665 GB, free: 78.46 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007704/1.77, allocations: 0.53 MB / 0.767 GB, free: 78.25 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004619/1.775, allocations: 0.7067 MB / 0.7677 GB, free: 78.05 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06317/1.838, allocations: 18.88 MB / 0.7862 GB, free: 62.46 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005606/1.838, allocations: 91.14 kB / 0.7863 GB, free: 62.37 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0043/1.843, allocations: 334.9 kB / 0.7866 GB, free: 62.09 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004206/1.847, allocations: 1.723 MB / 0.7883 GB, free: 60.37 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05528/1.902, allocations: 16.54 MB / 0.8044 GB, free: 43.81 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5389/2.441, allocations: 74.2 MB / 0.8769 GB, free: 49.71 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02722/2.469, allocations: 6.156 MB / 0.8829 GB, free: 48.47 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03936/2.508, allocations: 13.91 MB / 0.8965 GB, free: 44.34 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.859e-05/2.508, allocations: 62.69 kB / 0.8965 GB, free: 44.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=284): time 6.883e-06/2.508, allocations: 0 / 0.8965 GB, free: 44.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=344): time 0.1646/2.673, allocations: 24.77 MB / 0.9207 GB, free: 39.58 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/2.673, allocations: 188.1 kB / 0.9209 GB, free: 39.39 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01575/2.689, allocations: 5.274 MB / 0.926 GB, free: 38.88 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008358/2.689, allocations: 76.52 kB / 0.9261 GB, free: 38.85 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004629/2.694, allocations: 4.864 MB / 0.9309 GB, free: 35.91 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002168/2.696, allocations: 1.282 MB / 0.9321 GB, free: 35.17 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001516/2.698, allocations: 190.7 kB / 0.9323 GB, free: 35.17 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0009279/2.699, allocations: 0.713 MB / 0.933 GB, free: 34.84 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009632/2.709, allocations: 3.266 MB / 0.9362 GB, free: 34.81 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01398/2.723, allocations: 8.724 MB / 0.9447 GB, free: 26.64 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01373/2.736, allocations: 5.257 MB / 0.9498 GB, free: 24.86 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002485/2.737, allocations: 55.12 kB / 0.9499 GB, free: 24.86 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.04156/2.778, allocations: 12.59 MB / 0.9622 GB, free: 20.87 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001701/2.778, allocations: 86 kB / 0.9623 GB, free: 20.87 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004271/2.779, allocations: 193.4 kB / 0.9625 GB, free: 20.87 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008116/2.787, allocations: 1.335 MB / 0.9638 GB, free: 20.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01396/2.801, allocations: 2.184 MB / 0.9659 GB, free: 20.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01951/2.821, allocations: 7.403 MB / 0.9731 GB, free: 16.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01137/2.832, allocations: 0.5599 MB / 0.9737 GB, free: 16.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002204/2.834, allocations: 0.5491 MB / 0.9742 GB, free: 16.23 MB / 0.4948 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.009959/2.844, allocations: 3.452 MB / 0.9776 GB, free: 14.65 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001587/2.846, allocations: 0.5328 MB / 0.9781 GB, free: 14.35 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01945/2.865, allocations: 5.33 MB / 0.9833 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001086/2.865, allocations: 37.28 kB / 0.9833 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.092e-05/2.866, allocations: 7.25 kB / 0.9833 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-05/2.866, allocations: 12.23 kB / 0.9834 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04643/2.912, allocations: 14.12 MB / 0.9971 GB, free: 3.359 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-05/2.912, allocations: 16.06 kB / 0.9972 GB, free: 3.344 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004568/2.917, allocations: 0.5329 MB / 0.9977 GB, free: 2.91 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006679/2.923, allocations: 0.9169 MB / 0.9986 GB, free: 2.254 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007383/2.924, allocations: 69.47 kB / 0.9986 GB, free: 2.191 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.019/2.943, allocations: 5.859 MB / 1.004 GB, free: 13.47 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.85e-05/2.943, allocations: 19.88 kB / 1.004 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0283/2.972, allocations: 10.23 MB / 1.014 GB, free: 3.676 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004291/2.976, allocations: 0.9572 MB / 1.015 GB, free: 2.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001853/2.978, allocations: 68.77 kB / 1.015 GB, free: 2.711 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005149/2.983, allocations: 188.4 kB / 1.016 GB, free: 2.586 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00111/2.984, allocations: 222.9 kB / 1.016 GB, free: 2.434 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003595/2.985, allocations: 101.9 kB / 1.016 GB, free: 2.34 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01173/2.996, allocations: 3.672 MB / 1.019 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.62e-07/2.996, allocations: 0 / 1.019 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01323/3.01, allocations: 1.659 MB / 1.021 GB, free: 13.72 MB / 0.5261 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.03136/3.041, allocations: 13.26 MB / 1.034 GB, free: 1.059 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02377/3.065, allocations: 7.813 MB / 1.042 GB, free: 10.25 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-05/3.065, allocations: 4.5 kB / 1.042 GB, free: 10.25 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.007555/3.073, allocations: 2.401 MB / 1.044 GB, free: 8.09 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006179/3.079, allocations: 0.6506 MB / 1.045 GB, free: 7.539 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4933/3.572, allocations: 168.1 MB / 1.209 GB, free: 51.74 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01489/3.587, allocations: 5.331 MB / 1.214 GB, free: 50.86 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01266/3.6, allocations: 3.408 MB / 1.217 GB, free: 50.85 MB / 0.5886 GB Notification: Performance of SimCode: time 1.593e-06/3.6, allocations: 0 / 1.217 GB, free: 50.85 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.003/9.603, allocations: 163.7 MB / 1.377 GB, free: 176.3 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointSSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_JointSSR.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat does not exist to compare? outputFormat=mat