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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001243/0.001244, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00105/0.00105, allocations: 90.97 kB / 292.1 MB, free: 5.949 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2178/0.2178, allocations: 45.15 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.9e-05/3.911e-05, allocations: 4 kB / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1113, allocations: 63.25 MB / 0.5115 GB, free: 6.699 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4435/0.5548, allocations: 118.3 MB / 0.6269 GB, free: 7.953 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002064/0.5551, allocations: 77.95 kB / 0.627 GB, free: 7.914 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6652/1.22, allocations: 148.6 MB / 0.7722 GB, free: 114 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.815e-06/1.22, allocations: 1.594 kB / 0.7722 GB, free: 114 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0009628/1.221, allocations: 130.8 kB / 0.7723 GB, free: 114 MB / 0.5261 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.02617/1.248, allocations: 6.666 MB / 0.7788 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/1.248, allocations: 14.06 kB / 0.7788 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005613/1.253, allocations: 1.282 MB / 0.7801 GB, free: 111.4 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03536/1.289, allocations: 9.327 MB / 0.7892 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02238/1.311, allocations: 7.902 MB / 0.7969 GB, free: 110 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006626/1.312, allocations: 484.8 kB / 0.7974 GB, free: 110 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003841/1.316, allocations: 0.635 MB / 0.798 GB, free: 110 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03922/1.355, allocations: 15.54 MB / 0.8132 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004985/1.356, allocations: 77.62 kB / 0.8132 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002915/1.358, allocations: 302.3 kB / 0.8135 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001981/1.36, allocations: 1.389 MB / 0.8149 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02618/1.387, allocations: 12.73 MB / 0.8273 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06977/1.457, allocations: 64.39 MB / 0.8902 GB, free: 51.27 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01542/1.472, allocations: 6.254 MB / 0.8963 GB, free: 46.05 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003568/1.476, allocations: 3.112 MB / 0.8993 GB, free: 43.17 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01743/1.493, allocations: 11.14 MB / 0.9102 GB, free: 33.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.292e-05/1.493, allocations: 56.56 kB / 0.9103 GB, free: 33.24 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=245): time 7.594e-06/1.493, allocations: 0 / 0.9103 GB, free: 33.24 MB / 0.5261 GB Notification: Performance of matching and sorting (n=337): time 0.09995/1.593, allocations: 29.49 MB / 0.9391 GB, free: 4.816 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.991e-05/1.593, allocations: 243.8 kB / 0.9393 GB, free: 4.527 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01041/1.604, allocations: 4.91 MB / 0.9441 GB, free: 15.64 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0009483/1.605, allocations: 73.7 kB / 0.9442 GB, free: 15.56 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.004776/1.61, allocations: 4.471 MB / 0.9485 GB, free: 11.09 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001896/1.611, allocations: 1.232 MB / 0.9497 GB, free: 9.867 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001088/1.613, allocations: 164 kB / 0.9499 GB, free: 9.707 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0005777/1.613, allocations: 0.6685 MB / 0.9505 GB, free: 9.035 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006147/1.619, allocations: 3.531 MB / 0.954 GB, free: 5.496 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.361/1.98, allocations: 8.064 MB / 0.9619 GB, free: 111.9 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01075/1.991, allocations: 5.293 MB / 0.967 GB, free: 111.9 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003936/1.992, allocations: 44.75 kB / 0.9671 GB, free: 111.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1073) (initialization): time 0.03787/2.03, allocations: 14.59 MB / 0.9813 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002122/2.03, allocations: 74.62 kB / 0.9814 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002993/2.03, allocations: 159.7 kB / 0.9816 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01186/2.042, allocations: 3.557 MB / 0.985 GB, free: 111.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006573/2.049, allocations: 1.8 MB / 0.9868 GB, free: 111.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02458/2.073, allocations: 17.92 MB / 1.004 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00799/2.081, allocations: 484.5 kB / 1.005 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002114/2.084, allocations: 473 kB / 1.005 GB, free: 108.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 724 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (972): * Single equations (assignments): 968 * 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.003208/2.087, allocations: 0.7096 MB / 1.006 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001231/2.088, allocations: 0.5253 MB / 1.006 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01925/2.107, allocations: 8.822 MB / 1.015 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.696e-05/2.107, allocations: 37.16 kB / 1.015 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-05/2.107, allocations: 12.31 kB / 1.015 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-05/2.108, allocations: 22.27 kB / 1.015 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03925/2.147, allocations: 18.59 MB / 1.033 GB, free: 97.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.174e-05/2.147, allocations: 3.188 kB / 1.033 GB, free: 97.82 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002393/2.149, allocations: 492.9 kB / 1.034 GB, free: 97.78 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01029/2.16, allocations: 3.098 MB / 1.037 GB, free: 97.19 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008295/2.16, allocations: 59.84 kB / 1.037 GB, free: 97.15 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02096/2.181, allocations: 15.59 MB / 1.052 GB, free: 90.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.947e-06/2.182, allocations: 14.62 kB / 1.052 GB, free: 90.31 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02423/2.206, allocations: 14.03 MB / 1.066 GB, free: 83.21 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002062/2.208, allocations: 0.5616 MB / 1.066 GB, free: 82.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001971/2.21, allocations: 56.7 kB / 1.066 GB, free: 82.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004141/2.214, allocations: 203.8 kB / 1.067 GB, free: 82.47 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00111/2.215, allocations: 220.6 kB / 1.067 GB, free: 82.33 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004358/2.216, allocations: 87.38 kB / 1.067 GB, free: 82.25 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.007345/2.223, allocations: 3.466 MB / 1.07 GB, free: 79.21 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.763e-06/2.223, allocations: 0 / 1.07 GB, free: 79.21 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01011/2.233, allocations: 1.691 MB / 1.072 GB, free: 77.55 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 249 * 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.02618/2.259, allocations: 15.96 MB / 1.087 GB, free: 63.41 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01369/2.273, allocations: 8.794 MB / 1.096 GB, free: 55.29 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/2.273, allocations: 0 / 1.096 GB, free: 55.29 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005734/2.279, allocations: 3.435 MB / 1.099 GB, free: 52.12 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005181/2.284, allocations: 0.6838 MB / 1.1 GB, free: 51.55 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03744/2.322, allocations: 15.06 MB / 1.115 GB, free: 38.38 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01003/2.332, allocations: 4.955 MB / 1.12 GB, free: 34.7 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.007723/2.34, allocations: 2.598 MB / 1.122 GB, free: 33.06 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005281/2.345, allocations: 3.049 MB / 1.125 GB, free: 30.22 MB / 0.5417 GB Notification: Performance of SimCode: time 7.82e-07/2.345, allocations: 4 kB / 1.125 GB, free: 30.22 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5154/2.86, allocations: 132.2 MB / 1.254 GB, free: 101.9 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002115/2.861, allocations: 176.4 kB / 1.254 GB, free: 101.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.778/8.639, allocations: 7.062 kB / 1.254 GB, free: 101.7 MB / 0.5573 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