Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.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 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 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 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.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSR",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.001428/0.001428, allocations: 95.73 kB / 15.69 MB, free: 476 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 173.2 kB / 16.57 MB, free: 6.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.855/1.855, allocations: 205.4 MB / 222.7 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4523/0.4523, allocations: 43.54 MB / 314.5 MB, free: 8.695 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006631/0.0006633, allocations: 20 kB / 384 MB, free: 7.926 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1858/0.1865, allocations: 58.85 MB / 442.8 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.387/0.5737, allocations: 54.06 MB / 496.9 MB, free: 16.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03947/0.6132, allocations: 13.08 MB / 0.498 GB, free: 7.617 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0163/0.6295, allocations: 270.2 kB / 0.4983 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01241/0.642, allocations: 2.695 MB / 0.5009 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03666/0.6787, allocations: 7.791 MB / 0.5085 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006888/0.6856, allocations: 1.256 MB / 0.5098 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03387/0.7195, allocations: 17.3 MB / 0.5266 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01624/0.7358, allocations: 7.801 MB / 0.5343 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006594/0.7425, allocations: 2.025 MB / 0.5362 GB, free: 288 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007206/0.7497, allocations: 2.878 MB / 0.5391 GB, free: 13.39 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003057/0.7529, allocations: 295.9 kB / 0.5393 GB, free: 13.11 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005516/0.7584, allocations: 1.28 MB / 0.5406 GB, free: 11.82 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006604/0.765, allocations: 3.047 MB / 0.5436 GB, free: 8.77 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004649/0.7697, allocations: 1.524 MB / 0.5451 GB, free: 7.234 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01768/0.7875, allocations: 10.58 MB / 0.5554 GB, free: 12.63 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.7875, allocations: 0 / 0.5554 GB, free: 12.63 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.7875, allocations: 0 / 0.5554 GB, free: 12.63 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006346/0.7882, allocations: 4 kB / 0.5554 GB, free: 12.63 MB / 430.1 MB 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.03008/0.8183, allocations: 7.834 MB / 0.563 GB, free: 4.711 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.039e-05/0.8184, allocations: 8.031 kB / 0.563 GB, free: 4.703 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008009/0.8264, allocations: 1.426 MB / 0.5644 GB, free: 3.266 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03777/0.8642, allocations: 7.421 MB / 0.5717 GB, free: 11.82 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01929/0.8835, allocations: 6.039 MB / 0.5776 GB, free: 5.703 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007638/0.8844, allocations: 442.9 kB / 0.578 GB, free: 5.27 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00446/0.8889, allocations: 0.5971 MB / 0.5786 GB, free: 4.672 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05208/0.941, allocations: 20.85 MB / 0.599 GB, free: 14.68 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003537/0.9414, allocations: 83.25 kB / 0.599 GB, free: 14.59 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001524/0.9429, allocations: 267.7 kB / 0.5993 GB, free: 14.33 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006238/0.9492, allocations: 3.718 MB / 0.6029 GB, free: 10.61 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04412/0.9933, allocations: 18.37 MB / 0.6209 GB, free: 8.223 MB / 494.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.7297/1.723, allocations: 74.55 MB / 0.6937 GB, free: 83.18 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02175/1.745, allocations: 7.459 MB / 0.7009 GB, free: 80.18 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03776/1.783, allocations: 18.16 MB / 0.7187 GB, free: 70.84 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.97e-05/1.783, allocations: 68.34 kB / 0.7187 GB, free: 70.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=332): time 6.802e-06/1.783, allocations: 4 kB / 0.7188 GB, free: 70.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=413): time 0.1185/1.901, allocations: 35.73 MB / 0.7536 GB, free: 42.44 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.783e-05/1.901, allocations: 192.9 kB / 0.7538 GB, free: 42.21 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01072/1.912, allocations: 6.961 MB / 0.7606 GB, free: 35.26 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00129/1.914, allocations: 89.06 kB / 0.7607 GB, free: 35.17 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003611/1.917, allocations: 5.429 MB / 0.766 GB, free: 29.73 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002135/1.919, allocations: 1.527 MB / 0.7675 GB, free: 28.22 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005273/1.92, allocations: 206 kB / 0.7677 GB, free: 28.02 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0004472/1.92, allocations: 0.7563 MB / 0.7684 GB, free: 27.26 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005705/1.926, allocations: 4.128 MB / 0.7725 GB, free: 23.13 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008843/1.935, allocations: 9.991 MB / 0.7822 GB, free: 10.26 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00911/1.944, allocations: 6.289 MB / 0.7884 GB, free: 3.957 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001427/1.944, allocations: 59.95 kB / 0.7884 GB, free: 3.898 MB / 494.1 MB Notification: Performance of matching and sorting (n=1377) (initialization): time 0.03892/1.983, allocations: 15.85 MB / 0.8039 GB, free: 4.016 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.000399/1.984, allocations: 92 kB / 0.804 GB, free: 3.926 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005189/1.984, allocations: 212.1 kB / 0.8042 GB, free: 3.719 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009359/1.994, allocations: 2.342 MB / 0.8065 GB, free: 1.375 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01028/2.004, allocations: 2.394 MB / 0.8088 GB, free: 14.97 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02262/2.027, allocations: 12.09 MB / 0.8206 GB, free: 2.746 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01063/2.037, allocations: 0.5749 MB / 0.8212 GB, free: 2.172 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002696/2.04, allocations: 0.588 MB / 0.8218 GB, free: 1.586 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 937 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1276): * Single equations (assignments): 1269 * 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.3841/2.424, allocations: 3.767 MB / 0.8254 GB, free: 149.1 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001736/2.426, allocations: 0.5996 MB / 0.826 GB, free: 149.1 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01865/2.444, allocations: 8.158 MB / 0.834 GB, free: 148.8 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001186/2.445, allocations: 62.44 kB / 0.8341 GB, free: 148.8 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-05/2.445, allocations: 11.61 kB / 0.8341 GB, free: 148.8 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-05/2.445, allocations: 20.64 kB / 0.8341 GB, free: 148.8 MB / 0.5138 GB 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 postOpt removeSimpleEquations (simulation): time 0.04302/2.488, allocations: 18.76 MB / 0.8524 GB, free: 142 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.018e-05/2.488, allocations: 11.91 kB / 0.8524 GB, free: 142 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00352/2.491, allocations: 0.6135 MB / 0.853 GB, free: 141.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007185/2.499, allocations: 1.754 MB / 0.8547 GB, free: 141.6 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008992/2.5, allocations: 81.95 kB / 0.8548 GB, free: 141.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01895/2.519, allocations: 10.17 MB / 0.8647 GB, free: 136.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.977e-05/2.519, allocations: 24.73 kB / 0.8648 GB, free: 136.8 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0303/2.549, allocations: 14.07 MB / 0.8785 GB, free: 129.8 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005967/2.555, allocations: 1.17 MB / 0.8796 GB, free: 129.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002549/2.558, allocations: 78.97 kB / 0.8797 GB, free: 129.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004213/2.562, allocations: 199.1 kB / 0.8799 GB, free: 129.1 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008521/2.563, allocations: 265.9 kB / 0.8802 GB, free: 129 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002932/2.563, allocations: 115 kB / 0.8803 GB, free: 129 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.01175/2.575, allocations: 4.397 MB / 0.8846 GB, free: 127.6 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.533e-06/2.575, allocations: 0 / 0.8846 GB, free: 127.6 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01866/2.594, allocations: 1.936 MB / 0.8865 GB, free: 127.3 MB / 0.5138 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (325): * Single equations (assignments): 318 * 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.02813/2.622, allocations: 17 MB / 0.9031 GB, free: 113.7 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01801/2.64, allocations: 9.766 MB / 0.9126 GB, free: 104.1 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.612e-05/2.64, allocations: 0 / 0.9126 GB, free: 104.1 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005497/2.645, allocations: 3.3 MB / 0.9158 GB, free: 100.8 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005262/2.651, allocations: 0.7307 MB / 0.9165 GB, free: 100.1 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3999/3.051, allocations: 177.4 MB / 1.09 GB, free: 93.71 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00922/3.06, allocations: 5.753 MB / 1.095 GB, free: 92.81 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.009234/3.069, allocations: 3.329 MB / 1.099 GB, free: 92.71 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007992/3.077, allocations: 3.696 MB / 1.102 GB, free: 92.71 MB / 0.5294 GB Notification: Performance of SimCode: time 1.643e-06/3.077, allocations: 3.906 kB / 1.102 GB, free: 92.71 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4616/3.539, allocations: 141.9 MB / 1.241 GB, free: 137.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003004/3.539, allocations: 198.2 kB / 1.241 GB, free: 136.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.173/9.712, allocations: 0 / 1.241 GB, free: 136.9 MB / 0.5294 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSR_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSR.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat