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.0008768/0.000877, allocations: 97.84 kB / 16.98 MB, free: 6.398 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.001017/0.001017, allocations: 184 kB / 17.87 MB, free: 5.957 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.448/1.448, allocations: 223.2 MB / 241.8 MB, free: 376 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.256/0.256, allocations: 44.24 MB / 337.1 MB, free: 2.871 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003786/0.0003786, allocations: 9.656 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.139, allocations: 61.91 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.3942/0.5333, allocations: 58.55 MB / 0.5177 GB, free: 9.961 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04348/0.5768, allocations: 14.17 MB / 0.5315 GB, free: 8.562 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01879/0.5956, allocations: 301.7 kB / 0.5318 GB, free: 8.512 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01246/0.6081, allocations: 2.905 MB / 0.5346 GB, free: 7.645 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03404/0.6422, allocations: 8.373 MB / 0.5428 GB, free: 5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007635/0.6499, allocations: 1.152 MB / 0.5439 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.1062/0.7561, allocations: 72.25 MB / 0.6145 GB, free: 1.281 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01238/0.7686, allocations: 8.091 MB / 0.6224 GB, free: 9.109 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004607/0.7732, allocations: 1.748 MB / 0.6241 GB, free: 7.355 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004688/0.7779, allocations: 2.36 MB / 0.6264 GB, free: 4.988 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001286/0.7793, allocations: 240 kB / 0.6266 GB, free: 4.754 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003515/0.7828, allocations: 1.209 MB / 0.6278 GB, free: 3.543 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003443/0.7863, allocations: 2.638 MB / 0.6304 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002461/0.7887, allocations: 1.318 MB / 0.6317 GB, free: 15.57 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01232/0.8011, allocations: 9.531 MB / 0.641 GB, free: 6.016 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.8011, allocations: 4 kB / 0.641 GB, free: 6.012 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.8011, allocations: 4 kB / 0.641 GB, free: 6.008 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0004686/0.8016, allocations: 0 / 0.641 GB, free: 6.008 MB / 478.1 MB 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.0195/0.8211, allocations: 6.989 MB / 0.6478 GB, free: 14.94 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.8212, allocations: 11.97 kB / 0.6478 GB, free: 14.93 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004693/0.8259, allocations: 1.156 MB / 0.649 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0651/0.891, allocations: 11.1 MB / 0.6598 GB, free: 2.629 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01572/0.9068, allocations: 5.375 MB / 0.665 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000388/0.9072, allocations: 381.8 kB / 0.6654 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002313/0.9095, allocations: 0.5074 MB / 0.6659 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03466/0.9442, allocations: 15.64 MB / 0.6812 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000274/0.9445, allocations: 63.42 kB / 0.6812 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001211/0.9457, allocations: 235.8 kB / 0.6815 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005663/0.9514, allocations: 2.544 MB / 0.684 GB, free: 8.914 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04136/0.9928, allocations: 13.13 MB / 0.6968 GB, free: 11.76 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4114/1.404, allocations: 57.35 MB / 0.7528 GB, free: 152.5 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01819/1.423, allocations: 6.445 MB / 0.7591 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02251/1.445, allocations: 11.41 MB / 0.7702 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.271e-05/1.445, allocations: 61.62 kB / 0.7703 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 5.14e-06/1.445, allocations: 0 / 0.7703 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=338): time 0.133/1.578, allocations: 40.69 MB / 0.81 GB, free: 102.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001611/1.578, allocations: 239.9 kB / 0.8102 GB, free: 102.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009757/1.588, allocations: 6.077 MB / 0.8162 GB, free: 96.07 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001155/1.589, allocations: 77.7 kB / 0.8162 GB, free: 95.99 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002975/1.592, allocations: 4.447 MB / 0.8206 GB, free: 91.54 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001909/1.594, allocations: 1.241 MB / 0.8218 GB, free: 90.31 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004293/1.595, allocations: 160 kB / 0.8219 GB, free: 90.15 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003237/1.595, allocations: 0.653 MB / 0.8226 GB, free: 89.49 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00471/1.6, allocations: 3.737 MB / 0.8262 GB, free: 85.75 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006739/1.607, allocations: 8.234 MB / 0.8343 GB, free: 75.28 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007225/1.614, allocations: 5.433 MB / 0.8396 GB, free: 69.82 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.935e-05/1.614, allocations: 44 kB / 0.8396 GB, free: 69.78 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.03091/1.645, allocations: 15.39 MB / 0.8547 GB, free: 54.34 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001388/1.645, allocations: 72.47 kB / 0.8547 GB, free: 54.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002252/1.645, allocations: 160.1 kB / 0.8549 GB, free: 54.12 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01328/1.659, allocations: 4.119 MB / 0.8589 GB, free: 49.99 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006772/1.665, allocations: 1.797 MB / 0.8607 GB, free: 48.19 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02821/1.694, allocations: 20.29 MB / 0.8805 GB, free: 27.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007982/1.702, allocations: 0.4953 MB / 0.8809 GB, free: 27.27 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001714/1.703, allocations: 470.5 kB / 0.8814 GB, free: 26.81 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.007818/1.711, allocations: 3.115 MB / 0.8844 GB, free: 23.68 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002051/1.713, allocations: 0.5284 MB / 0.885 GB, free: 23.15 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01917/1.732, allocations: 9.591 MB / 0.8943 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.908e-05/1.733, allocations: 34.19 kB / 0.8944 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.054e-05/1.733, allocations: 20 kB / 0.8944 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.394e-05/1.733, allocations: 15.94 kB / 0.8944 GB, free: 13.42 MB / 0.5294 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.4078/2.14, allocations: 19.78 MB / 0.9137 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.228e-05/2.141, allocations: 6.25 kB / 0.9137 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002844/2.143, allocations: 497.5 kB / 0.9142 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01587/2.159, allocations: 3.661 MB / 0.9178 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001218/2.161, allocations: 60.66 kB / 0.9178 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02854/2.189, allocations: 17.83 MB / 0.9352 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-05/2.189, allocations: 13.53 kB / 0.9352 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0251/2.214, allocations: 15.13 MB / 0.95 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001996/2.216, allocations: 0.594 MB / 0.9506 GB, free: 156.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001789/2.218, allocations: 61.95 kB / 0.9507 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003445/2.222, allocations: 234.5 kB / 0.9509 GB, free: 156.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008713/2.222, allocations: 222.2 kB / 0.9511 GB, free: 156.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002718/2.223, allocations: 88.75 kB / 0.9512 GB, free: 156.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005862/2.229, allocations: 3.903 MB / 0.955 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.51e-07/2.229, allocations: 0 / 0.955 GB, free: 152.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009159/2.238, allocations: 1.732 MB / 0.9567 GB, free: 150.7 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.02672/2.265, allocations: 17.17 MB / 0.9735 GB, free: 133.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0158/2.28, allocations: 9.187 MB / 0.9824 GB, free: 124.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.92e-05/2.281, allocations: 0 / 0.9824 GB, free: 124.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005117/2.286, allocations: 3.626 MB / 0.986 GB, free: 120.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004375/2.29, allocations: 0.6833 MB / 0.9866 GB, free: 120 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.343/2.633, allocations: 137.2 MB / 1.121 GB, free: 176 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009993/2.643, allocations: 4.953 MB / 1.125 GB, free: 175.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.009142/2.652, allocations: 2.605 MB / 1.128 GB, free: 175 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004718/2.657, allocations: 3.077 MB / 1.131 GB, free: 175 MB / 0.545 GB Notification: Performance of SimCode: time 1.112e-06/2.657, allocations: 3.938 kB / 1.131 GB, free: 175 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1758/2.833, allocations: 134 MB / 1.262 GB, free: 58.73 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001348/2.833, allocations: 215.9 kB / 1.262 GB, free: 58.48 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.318/8.151, allocations: 0 / 1.262 GB, free: 58.48 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