Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001015/0.001015, allocations: 93.19 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001024/0.001024, allocations: 208.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2442/0.2442, allocations: 45.92 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002722/0.0002722, allocations: 8 kB / 418.1 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1619, allocations: 63.46 MB / 481.5 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.4009/0.5629, allocations: 58.58 MB / 0.5274 GB, free: 9.602 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03818/0.6011, allocations: 14.19 MB / 0.5413 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02183/0.623, allocations: 300.9 kB / 0.5416 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01402/0.6371, allocations: 2.916 MB / 0.5444 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03626/0.6734, allocations: 8.349 MB / 0.5526 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006918/0.6803, allocations: 1.152 MB / 0.5537 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.1049/0.7852, allocations: 71.81 MB / 0.6238 GB, free: 5.645 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01453/0.7998, allocations: 8.069 MB / 0.6317 GB, free: 13.5 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00425/0.8041, allocations: 1.76 MB / 0.6334 GB, free: 11.73 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004299/0.8085, allocations: 2.356 MB / 0.6357 GB, free: 9.367 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001168/0.8097, allocations: 244 kB / 0.636 GB, free: 9.129 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00319/0.8129, allocations: 1.182 MB / 0.6371 GB, free: 7.945 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00275/0.8156, allocations: 2.646 MB / 0.6397 GB, free: 5.293 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001982/0.8176, allocations: 1.318 MB / 0.641 GB, free: 3.965 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01247/0.8301, allocations: 9.531 MB / 0.6503 GB, free: 10.41 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.8302, allocations: 0 / 0.6503 GB, free: 10.41 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.8302, allocations: 0 / 0.6503 GB, free: 10.41 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0004356/0.8306, allocations: 0 / 0.6503 GB, free: 10.41 MB / 494.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.0208/0.8514, allocations: 7.024 MB / 0.6572 GB, free: 3.305 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.702e-05/0.8515, allocations: 12.03 kB / 0.6572 GB, free: 3.293 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004703/0.8562, allocations: 1.144 MB / 0.6583 GB, free: 2.137 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06221/0.9184, allocations: 11.1 MB / 0.6691 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01593/0.9344, allocations: 5.387 MB / 0.6744 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000398/0.9349, allocations: 377.9 kB / 0.6748 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003186/0.9381, allocations: 0.5074 MB / 0.6753 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03767/0.9758, allocations: 15.64 MB / 0.6905 GB, free: 124 kB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003031/0.9761, allocations: 71.36 kB / 0.6906 GB, free: 52 kB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001716/0.9778, allocations: 231.9 kB / 0.6908 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004512/0.9823, allocations: 2.548 MB / 0.6933 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03126/1.014, allocations: 13.12 MB / 0.7061 GB, free: 128 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3837/1.397, allocations: 57.34 MB / 0.7621 GB, free: 139.9 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01678/1.414, allocations: 6.461 MB / 0.7684 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01768/1.432, allocations: 11.49 MB / 0.7796 GB, free: 125.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.309e-05/1.432, allocations: 56.56 kB / 0.7797 GB, free: 125.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=245): time 5.39e-06/1.432, allocations: 0 / 0.7797 GB, free: 125.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=338): time 0.1264/1.558, allocations: 40.28 MB / 0.819 GB, free: 84.95 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/1.559, allocations: 243.9 kB / 0.8193 GB, free: 84.66 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008492/1.567, allocations: 6.073 MB / 0.8252 GB, free: 78.61 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001129/1.568, allocations: 79.5 kB / 0.8253 GB, free: 78.53 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002831/1.571, allocations: 4.452 MB / 0.8296 GB, free: 74.07 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001838/1.573, allocations: 1.237 MB / 0.8308 GB, free: 72.85 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004163/1.573, allocations: 165.2 kB / 0.831 GB, free: 72.69 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003678/1.574, allocations: 0.6492 MB / 0.8316 GB, free: 72.03 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004774/1.579, allocations: 3.744 MB / 0.8353 GB, free: 68.28 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006521/1.585, allocations: 8.242 MB / 0.8433 GB, free: 57.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007005/1.592, allocations: 5.429 MB / 0.8486 GB, free: 52.35 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.408e-05/1.592, allocations: 44 kB / 0.8487 GB, free: 52.31 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.03062/1.623, allocations: 15.39 MB / 0.8637 GB, free: 36.86 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001319/1.623, allocations: 74.81 kB / 0.8638 GB, free: 36.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002163/1.623, allocations: 160 kB / 0.8639 GB, free: 36.63 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0131/1.636, allocations: 4.12 MB / 0.868 GB, free: 32.51 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006534/1.643, allocations: 1.801 MB / 0.8697 GB, free: 30.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02733/1.67, allocations: 20.3 MB / 0.8895 GB, free: 10.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008367/1.679, allocations: 499.2 kB / 0.89 GB, free: 9.785 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001922/1.681, allocations: 468.9 kB / 0.8905 GB, free: 9.328 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.007782/1.689, allocations: 3.122 MB / 0.8935 GB, free: 6.191 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001401/1.69, allocations: 0.5245 MB / 0.894 GB, free: 5.66 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01975/1.71, allocations: 9.591 MB / 0.9034 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.917e-05/1.71, allocations: 36 kB / 0.9034 GB, free: 11.97 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.24e-05/1.71, allocations: 12 kB / 0.9034 GB, free: 11.96 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.098e-05/1.71, allocations: 15.94 kB / 0.9034 GB, free: 11.94 MB / 0.545 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.443/2.153, allocations: 19.78 MB / 0.9228 GB, free: 179.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.398e-05/2.153, allocations: 10.12 kB / 0.9228 GB, free: 179.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002896/2.156, allocations: 494.4 kB / 0.9232 GB, free: 179.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0144/2.17, allocations: 3.665 MB / 0.9268 GB, free: 179.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009458/2.171, allocations: 66.78 kB / 0.9269 GB, free: 179.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02703/2.198, allocations: 17.84 MB / 0.9443 GB, free: 171.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/2.198, allocations: 7.812 kB / 0.9443 GB, free: 171.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02624/2.225, allocations: 15.16 MB / 0.9591 GB, free: 164.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002355/2.227, allocations: 0.591 MB / 0.9597 GB, free: 164.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001827/2.229, allocations: 63.89 kB / 0.9597 GB, free: 164.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00343/2.232, allocations: 229.1 kB / 0.96 GB, free: 164.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008199/2.233, allocations: 224.3 kB / 0.9602 GB, free: 164 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002487/2.234, allocations: 96.61 kB / 0.9603 GB, free: 163.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006034/2.24, allocations: 3.901 MB / 0.9641 GB, free: 160.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.322e-06/2.24, allocations: 0 / 0.9641 GB, free: 160.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009689/2.249, allocations: 1.719 MB / 0.9658 GB, free: 158.4 MB / 0.545 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.02606/2.275, allocations: 17.17 MB / 0.9825 GB, free: 141.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01632/2.292, allocations: 9.192 MB / 0.9915 GB, free: 132.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.416e-05/2.292, allocations: 4.188 kB / 0.9915 GB, free: 132.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006477/2.298, allocations: 3.64 MB / 0.9951 GB, free: 128.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005646/2.304, allocations: 0.6801 MB / 0.9957 GB, free: 127.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3917/2.696, allocations: 137.2 MB / 1.13 GB, free: 159.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01067/2.706, allocations: 4.961 MB / 1.135 GB, free: 159 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.009748/2.716, allocations: 2.607 MB / 1.137 GB, free: 158.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005858/2.722, allocations: 3.07 MB / 1.14 GB, free: 158.9 MB / 0.545 GB Notification: Performance of SimCode: time 2.244e-06/2.722, allocations: 1.281 kB / 1.14 GB, free: 158.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1963/2.918, allocations: 133.8 MB / 1.271 GB, free: 44.48 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001612/2.919, allocations: 207.5 kB / 1.271 GB, free: 44.23 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.479/8.397, allocations: 4 kB / 1.271 GB, free: 44.23 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat