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/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 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 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) 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 93.11 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009619/0.000962, allocations: 187.7 kB / 17.87 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 223.2 MB / 241.8 MB, free: 392 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2638/0.2638, allocations: 44.22 MB / 337.1 MB, free: 2.898 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004086/0.0004087, allocations: 8 kB / 409.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.1509, allocations: 61.91 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointSSR): time 0.3789/0.5298, allocations: 49.77 MB / 0.5091 GB, free: 9.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03419/0.564, allocations: 12.19 MB / 0.521 GB, free: 9.566 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01618/0.5803, allocations: 247.5 kB / 0.5212 GB, free: 9.527 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01203/0.5923, allocations: 2.481 MB / 0.5237 GB, free: 9.059 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03472/0.6271, allocations: 7.178 MB / 0.5307 GB, free: 7.391 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007773/0.6349, allocations: 1.047 MB / 0.5317 GB, free: 7.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.05848/0.6934, allocations: 26.65 MB / 0.5577 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01488/0.7084, allocations: 6.993 MB / 0.5645 GB, free: 4.051 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004811/0.7132, allocations: 1.773 MB / 0.5663 GB, free: 2.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005153/0.7184, allocations: 2.508 MB / 0.5687 GB, free: 15.9 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001642/0.7201, allocations: 264 kB / 0.569 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004175/0.7243, allocations: 1.262 MB / 0.5702 GB, free: 14.41 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003593/0.7279, allocations: 2.682 MB / 0.5728 GB, free: 11.75 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002161/0.7301, allocations: 1.384 MB / 0.5742 GB, free: 10.36 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01287/0.743, allocations: 9.603 MB / 0.5836 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.743, allocations: 0 / 0.5836 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.743, allocations: 0 / 0.5836 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004208/0.7434, allocations: 0 / 0.5836 GB, free: 0.9062 MB / 414.1 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.01735/0.7608, allocations: 6.682 MB / 0.5901 GB, free: 10.18 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.7609, allocations: 12.03 kB / 0.5901 GB, free: 10.16 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004771/0.7656, allocations: 1.295 MB / 0.5914 GB, free: 8.855 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0345/0.8002, allocations: 7.167 MB / 0.5984 GB, free: 1.668 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01186/0.8121, allocations: 4.456 MB / 0.6027 GB, free: 13.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000407/0.8125, allocations: 402 kB / 0.6031 GB, free: 12.77 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002709/0.8152, allocations: 0.5541 MB / 0.6036 GB, free: 12.21 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04028/0.8555, allocations: 19.06 MB / 0.6222 GB, free: 8.105 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002522/0.8558, allocations: 79.25 kB / 0.6223 GB, free: 8.027 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009717/0.8568, allocations: 247.8 kB / 0.6226 GB, free: 7.785 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00528/0.8621, allocations: 3.424 MB / 0.6259 GB, free: 4.355 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03772/0.8998, allocations: 16.75 MB / 0.6423 GB, free: 3.586 MB / 478.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6258/1.526, allocations: 66.96 MB / 0.7076 GB, free: 169.3 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0204/1.546, allocations: 6.291 MB / 0.7138 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03215/1.578, allocations: 13.97 MB / 0.7274 GB, free: 163.2 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.16e-05/1.578, allocations: 58 kB / 0.7275 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=284): time 6.061e-06/1.578, allocations: 2.844 kB / 0.7275 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=345): time 0.09153/1.67, allocations: 25.87 MB / 0.7527 GB, free: 154.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.412e-05/1.67, allocations: 187.3 kB / 0.7529 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008305/1.678, allocations: 6.218 MB / 0.759 GB, free: 151 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007936/1.679, allocations: 72.28 kB / 0.7591 GB, free: 151 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003303/1.683, allocations: 4.983 MB / 0.7639 GB, free: 146 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001776/1.684, allocations: 1.28 MB / 0.7652 GB, free: 144.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000458/1.685, allocations: 191.8 kB / 0.7654 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0004372/1.685, allocations: 0.7058 MB / 0.7661 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004598/1.69, allocations: 3.255 MB / 0.7692 GB, free: 140.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00813/1.698, allocations: 8.695 MB / 0.7777 GB, free: 129.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009476/1.708, allocations: 5.222 MB / 0.7828 GB, free: 124.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002713/1.708, allocations: 56 kB / 0.7829 GB, free: 124.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.02639/1.734, allocations: 12.74 MB / 0.7953 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001245/1.734, allocations: 88 kB / 0.7954 GB, free: 111.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000233/1.735, allocations: 192 kB / 0.7956 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003843/1.738, allocations: 1.343 MB / 0.7969 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007091/1.746, allocations: 2.16 MB / 0.799 GB, free: 107.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01025/1.756, allocations: 7.525 MB / 0.8064 GB, free: 99.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008721/1.765, allocations: 0.5009 MB / 0.8068 GB, free: 99.45 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001919/1.767, allocations: 0.5439 MB / 0.8074 GB, free: 98.91 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 874 * 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 (1152): * Single equations (assignments): 1145 * 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.009451/1.776, allocations: 3.451 MB / 0.8107 GB, free: 95.45 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001332/1.777, allocations: 0.5283 MB / 0.8113 GB, free: 94.91 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01037/1.788, allocations: 5.393 MB / 0.8165 GB, free: 89.46 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.788e-05/1.788, allocations: 36 kB / 0.8166 GB, free: 89.43 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-05/1.788, allocations: 10.44 kB / 0.8166 GB, free: 89.42 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.15e-05/1.788, allocations: 19.75 kB / 0.8166 GB, free: 89.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03095/1.819, allocations: 14.03 MB / 0.8303 GB, free: 75.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.974e-05/1.819, allocations: 12 kB / 0.8303 GB, free: 75.15 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002109/1.821, allocations: 0.4883 MB / 0.8308 GB, free: 74.66 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003003/1.824, allocations: 0.8125 MB / 0.8316 GB, free: 73.85 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004058/1.825, allocations: 69.7 kB / 0.8316 GB, free: 73.78 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007957/1.832, allocations: 5.548 MB / 0.8371 GB, free: 68.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.288e-05/1.833, allocations: 19.89 kB / 0.8371 GB, free: 68.08 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01651/1.849, allocations: 10 MB / 0.8468 GB, free: 57.47 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002491/1.852, allocations: 0.5877 MB / 0.8474 GB, free: 56.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001874/1.853, allocations: 65.09 kB / 0.8475 GB, free: 56.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003308/1.857, allocations: 140.3 kB / 0.8476 GB, free: 56.66 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007274/1.858, allocations: 222.2 kB / 0.8478 GB, free: 56.45 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004378/1.858, allocations: 100.8 kB / 0.8479 GB, free: 56.35 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007752/1.866, allocations: 3.91 MB / 0.8517 GB, free: 52.47 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.91e-07/1.866, allocations: 6.734 kB / 0.8517 GB, free: 52.47 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0111/1.877, allocations: 1.653 MB / 0.8534 GB, free: 50.83 MB / 0.5294 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 (269): * Single equations (assignments): 262 * 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.01894/1.896, allocations: 13.05 MB / 0.8661 GB, free: 37.31 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01631/1.912, allocations: 7.745 MB / 0.8737 GB, free: 29.57 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.176e-05/1.912, allocations: 0 / 0.8737 GB, free: 29.57 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004955/1.917, allocations: 2.359 MB / 0.876 GB, free: 27.21 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006825/1.924, allocations: 0.6455 MB / 0.8766 GB, free: 26.57 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3822/2.306, allocations: 166.3 MB / 1.039 GB, free: 58.53 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01217/2.319, allocations: 5.311 MB / 1.044 GB, free: 57.62 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.009298/2.328, allocations: 2.97 MB / 1.047 GB, free: 57.37 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005146/2.333, allocations: 3.337 MB / 1.05 GB, free: 55.45 MB / 0.545 GB Notification: Performance of SimCode: time 1.913e-06/2.333, allocations: 0 / 1.05 GB, free: 55.45 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.48/2.813, allocations: 123.7 MB / 1.171 GB, free: 149.9 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002283/2.813, allocations: 208 kB / 1.171 GB, free: 149.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.356/8.169, allocations: 0 / 1.171 GB, free: 149.7 MB / 0.545 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