Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP",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.001097/0.001097, allocations: 96.42 kB / 17 MB, free: 6.414 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.001281/0.001281, allocations: 189.4 kB / 17.89 MB, free: 5.945 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.48/1.48, allocations: 223.2 MB / 241.9 MB, free: 268 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.274/0.274, allocations: 44.23 MB / 337.2 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003188/0.000319, allocations: 8 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1284, allocations: 61.91 MB / 471.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.3716/0.5001, allocations: 62.06 MB / 0.5212 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03912/0.5393, allocations: 13.56 MB / 0.5344 GB, free: 8.137 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01686/0.5562, allocations: 304 kB / 0.5347 GB, free: 8.086 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01172/0.5679, allocations: 3.2 MB / 0.5379 GB, free: 7.047 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03071/0.5987, allocations: 9.586 MB / 0.5472 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006158/0.6048, allocations: 1.169 MB / 0.5484 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.1221/0.727, allocations: 91.81 MB / 0.638 GB, free: 10.25 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01614/0.7432, allocations: 8.16 MB / 0.646 GB, free: 2.008 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005991/0.7492, allocations: 2.137 MB / 0.6481 GB, free: 15.86 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006879/0.7561, allocations: 3.365 MB / 0.6514 GB, free: 12.49 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002078/0.7582, allocations: 236 kB / 0.6516 GB, free: 12.26 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004798/0.7631, allocations: 1.248 MB / 0.6528 GB, free: 11.01 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005296/0.7684, allocations: 2.844 MB / 0.6556 GB, free: 8.156 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003731/0.7722, allocations: 1.322 MB / 0.6569 GB, free: 6.824 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01425/0.7864, allocations: 9.535 MB / 0.6662 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.7865, allocations: 0 / 0.6662 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of FrontEnd: time 5.45e-06/0.7865, allocations: 4 kB / 0.6662 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0005433/0.7871, allocations: 7.938 kB / 0.6662 GB, free: 13.25 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.02013/0.8072, allocations: 6.837 MB / 0.6729 GB, free: 6.336 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.237e-05/0.8073, allocations: 12.03 kB / 0.6729 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004041/0.8113, allocations: 1.152 MB / 0.674 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04866/0.86, allocations: 8.467 MB / 0.6823 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01564/0.8757, allocations: 5.991 MB / 0.6881 GB, free: 6.602 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004712/0.8762, allocations: 385.8 kB / 0.6885 GB, free: 6.223 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002559/0.8788, allocations: 0.5074 MB / 0.689 GB, free: 5.715 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0383/0.9171, allocations: 15.41 MB / 0.704 GB, free: 5.402 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000703/0.9178, allocations: 67.42 kB / 0.7041 GB, free: 5.336 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002811/0.9207, allocations: 231.8 kB / 0.7043 GB, free: 5.109 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004653/0.9254, allocations: 2.548 MB / 0.7068 GB, free: 2.559 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3268/1.252, allocations: 12.85 MB / 0.7194 GB, free: 188.6 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07176/1.324, allocations: 57.13 MB / 0.7752 GB, free: 141.2 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01549/1.34, allocations: 6.345 MB / 0.7814 GB, free: 134.8 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00521/1.345, allocations: 3.307 MB / 0.7846 GB, free: 131.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01642/1.361, allocations: 11.29 MB / 0.7956 GB, free: 119.8 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.715e-05/1.361, allocations: 68.48 kB / 0.7957 GB, free: 119.7 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 5.912e-06/1.361, allocations: 0 / 0.7957 GB, free: 119.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=338): time 0.1298/1.491, allocations: 40.01 MB / 0.8347 GB, free: 79.66 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/1.491, allocations: 247.8 kB / 0.835 GB, free: 79.36 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007572/1.499, allocations: 5.706 MB / 0.8406 GB, free: 73.68 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008871/1.5, allocations: 74.41 kB / 0.8406 GB, free: 73.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00242/1.502, allocations: 4.452 MB / 0.845 GB, free: 69.15 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00156/1.504, allocations: 1.232 MB / 0.8462 GB, free: 67.93 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003818/1.504, allocations: 168 kB / 0.8463 GB, free: 67.76 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000325/1.505, allocations: 0.6492 MB / 0.847 GB, free: 67.11 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004739/1.509, allocations: 3.733 MB / 0.8506 GB, free: 63.36 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006955/1.516, allocations: 8.265 MB / 0.8587 GB, free: 52.86 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007629/1.524, allocations: 5.436 MB / 0.864 GB, free: 47.41 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001095/1.524, allocations: 44 kB / 0.864 GB, free: 47.36 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.03078/1.555, allocations: 15.39 MB / 0.8791 GB, free: 31.92 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002153/1.555, allocations: 72 kB / 0.8791 GB, free: 31.85 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002558/1.555, allocations: 156 kB / 0.8793 GB, free: 31.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01197/1.567, allocations: 4.124 MB / 0.8833 GB, free: 27.56 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006173/1.574, allocations: 1.794 MB / 0.8851 GB, free: 25.77 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02842/1.602, allocations: 19.59 MB / 0.9042 GB, free: 6.043 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007493/1.61, allocations: 0.4915 MB / 0.9047 GB, free: 5.551 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001863/1.612, allocations: 468.9 kB / 0.9051 GB, free: 5.098 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 717 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (966): * Single equations (assignments): 962 * Array equations: 3 * 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 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007203/1.619, allocations: 3.111 MB / 0.9082 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00166/1.62, allocations: 0.5283 MB / 0.9087 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3339/1.954, allocations: 9.589 MB / 0.918 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.046e-05/1.954, allocations: 35.19 kB / 0.9181 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.015e-05/1.954, allocations: 17.78 kB / 0.9181 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.605e-05/1.955, allocations: 16.61 kB / 0.9181 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03839/1.993, allocations: 19.69 MB / 0.9373 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-05/1.993, allocations: 6 kB / 0.9374 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002595/1.996, allocations: 0.4897 MB / 0.9378 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01119/2.007, allocations: 3.661 MB / 0.9414 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006794/2.008, allocations: 59.66 kB / 0.9415 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0212/2.029, allocations: 17.14 MB / 0.9582 GB, free: 152.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.235e-06/2.029, allocations: 11.94 kB / 0.9582 GB, free: 152.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02377/2.053, allocations: 14.18 MB / 0.9721 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001871/2.055, allocations: 0.5673 MB / 0.9726 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001362/2.056, allocations: 60.62 kB / 0.9727 GB, free: 138.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002721/2.059, allocations: 224.3 kB / 0.9729 GB, free: 138.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006265/2.059, allocations: 230 kB / 0.9731 GB, free: 138 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002336/2.06, allocations: 88.61 kB / 0.9732 GB, free: 137.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005489/2.065, allocations: 3.612 MB / 0.9767 GB, free: 134.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.01e-07/2.065, allocations: 0 / 0.9767 GB, free: 134.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008889/2.074, allocations: 1.707 MB / 0.9784 GB, free: 132.6 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 2 (revolute.phi,revolute.w) * 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 (256): * Single equations (assignments): 252 * Array equations: 3 * 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 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02282/2.097, allocations: 14.91 MB / 0.9929 GB, free: 117.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0148/2.112, allocations: 9.188 MB / 1.002 GB, free: 108.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.561e-05/2.112, allocations: 4 kB / 1.002 GB, free: 108.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007665/2.119, allocations: 3.622 MB / 1.005 GB, free: 104.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008811/2.128, allocations: 0.7526 MB / 1.006 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1218/2.25, allocations: 62.64 MB / 1.067 GB, free: 36.47 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008988/2.259, allocations: 4.826 MB / 1.072 GB, free: 31.61 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007881/2.267, allocations: 2.59 MB / 1.075 GB, free: 29.01 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005474/2.273, allocations: 3.065 MB / 1.078 GB, free: 25.95 MB / 0.5294 GB Notification: Performance of SimCode: time 1.744e-06/2.273, allocations: 3.938 kB / 1.078 GB, free: 25.94 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5182/2.791, allocations: 134.7 MB / 1.209 GB, free: 106 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001278/2.791, allocations: 209.8 kB / 1.209 GB, free: 105.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.379/8.17, allocations: 0 / 1.209 GB, free: 105.8 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat