Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001267/0.001267, allocations: 99.22 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001607/0.001607, allocations: 206.6 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.43/1.43, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2391/0.2391, allocations: 45.91 MB / 344 MB, free: 12.08 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003571/0.0003571, allocations: 4 kB / 418.1 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1625/0.1629, allocations: 63.46 MB / 481.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.3835/0.5464, allocations: 40.21 MB / 0.5095 GB, free: 9.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02779/0.5742, allocations: 10.02 MB / 0.5193 GB, free: 9.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01185/0.5861, allocations: 205.3 kB / 0.5195 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009619/0.5958, allocations: 1.964 MB / 0.5214 GB, free: 9.293 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02871/0.6245, allocations: 5.838 MB / 0.5271 GB, free: 8.707 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004245/0.6288, allocations: 0.7556 MB / 0.5278 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.07038/0.6992, allocations: 48.45 MB / 0.5751 GB, free: 7.473 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00779/0.707, allocations: 4.214 MB / 0.5793 GB, free: 3.242 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00337/0.7105, allocations: 1.176 MB / 0.5804 GB, free: 2.062 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002952/0.7134, allocations: 1.742 MB / 0.5821 GB, free: 324 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006769/0.7141, allocations: 176 kB / 0.5823 GB, free: 148 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002675/0.7168, allocations: 1.046 MB / 0.5833 GB, free: 15.1 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001984/0.7188, allocations: 1.809 MB / 0.5851 GB, free: 13.29 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001319/0.7202, allocations: 0.8933 MB / 0.5859 GB, free: 12.39 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007387/0.7276, allocations: 6.13 MB / 0.5919 GB, free: 6.254 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.7276, allocations: 0 / 0.5919 GB, free: 6.254 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.7276, allocations: 0 / 0.5919 GB, free: 6.254 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000209/0.7278, allocations: 0 / 0.5919 GB, free: 6.254 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01277/0.7406, allocations: 4.862 MB / 0.5967 GB, free: 1.344 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.7406, allocations: 13.23 kB / 0.5967 GB, free: 1.332 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002311/0.743, allocations: 0.8081 MB / 0.5975 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04209/0.7851, allocations: 7.897 MB / 0.6052 GB, free: 8.598 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009591/0.7947, allocations: 3.527 MB / 0.6086 GB, free: 5.027 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002565/0.795, allocations: 242.1 kB / 0.6089 GB, free: 4.789 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001529/0.7965, allocations: 331.7 kB / 0.6092 GB, free: 4.465 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02523/0.8218, allocations: 10.88 MB / 0.6198 GB, free: 8.832 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001976/0.822, allocations: 43.59 kB / 0.6198 GB, free: 8.789 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005156/0.8226, allocations: 163.8 kB / 0.62 GB, free: 8.629 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00359/0.8262, allocations: 2.003 MB / 0.622 GB, free: 6.621 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02097/0.8471, allocations: 9.331 MB / 0.6311 GB, free: 13.27 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05984/0.907, allocations: 41.14 MB / 0.6713 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01105/0.9181, allocations: 4.235 MB / 0.6754 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01319/0.9314, allocations: 7.595 MB / 0.6828 GB, free: 6.566 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.333e-05/0.9315, allocations: 47.56 kB / 0.6828 GB, free: 6.512 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 5.02e-06/0.9315, allocations: 0 / 0.6828 GB, free: 6.512 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.5041/1.436, allocations: 41.41 MB / 0.7233 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/1.436, allocations: 206.4 kB / 0.7235 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007693/1.443, allocations: 4.554 MB / 0.7279 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008143/1.444, allocations: 64.83 kB / 0.728 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002071/1.446, allocations: 3.222 MB / 0.7311 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001323/1.448, allocations: 0.876 MB / 0.732 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003608/1.448, allocations: 126.9 kB / 0.7321 GB, free: 175 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003195/1.448, allocations: 0.569 MB / 0.7327 GB, free: 174.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004638/1.453, allocations: 3.47 MB / 0.7361 GB, free: 172.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006838/1.46, allocations: 7.059 MB / 0.743 GB, free: 166 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006352/1.466, allocations: 4.806 MB / 0.7476 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.407e-05/1.466, allocations: 36 kB / 0.7477 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03488/1.501, allocations: 15.66 MB / 0.763 GB, free: 147.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.822e-05/1.501, allocations: 60.03 kB / 0.763 GB, free: 147.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-05/1.502, allocations: 128 kB / 0.7632 GB, free: 147.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02245/1.524, allocations: 6.115 MB / 0.7691 GB, free: 141.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006375/1.53, allocations: 1.428 MB / 0.7705 GB, free: 140 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03169/1.562, allocations: 26.37 MB / 0.7963 GB, free: 113.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006553/1.569, allocations: 404.7 kB / 0.7967 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001369/1.57, allocations: 381 kB / 0.797 GB, free: 112.6 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (741): * Single equations (assignments): 736 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004558/1.575, allocations: 2.221 MB / 0.7992 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001155/1.576, allocations: 390.9 kB / 0.7996 GB, free: 110 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02615/1.602, allocations: 11.07 MB / 0.8104 GB, free: 98.87 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.996e-05/1.602, allocations: 24 kB / 0.8104 GB, free: 98.84 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.728e-05/1.602, allocations: 12 kB / 0.8104 GB, free: 98.83 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.564e-05/1.602, allocations: 11.92 kB / 0.8104 GB, free: 98.82 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04217/1.644, allocations: 20.6 MB / 0.8305 GB, free: 77.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.873e-05/1.644, allocations: 4 kB / 0.8305 GB, free: 77.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002119/1.647, allocations: 388 kB / 0.8309 GB, free: 77.42 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01993/1.667, allocations: 5.19 MB / 0.836 GB, free: 72.22 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007583/1.667, allocations: 36 kB / 0.836 GB, free: 72.19 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02441/1.692, allocations: 21.5 MB / 0.857 GB, free: 50.42 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.279e-06/1.692, allocations: 11.94 kB / 0.857 GB, free: 50.41 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02948/1.721, allocations: 14.91 MB / 0.8716 GB, free: 35.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001787/1.723, allocations: 463.7 kB / 0.872 GB, free: 34.72 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001219/1.724, allocations: 52.88 kB / 0.8721 GB, free: 34.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002752/1.727, allocations: 175.7 kB / 0.8722 GB, free: 34.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006686/1.728, allocations: 154.9 kB / 0.8724 GB, free: 34.35 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002009/1.728, allocations: 64 kB / 0.8724 GB, free: 34.29 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004142/1.732, allocations: 2.902 MB / 0.8753 GB, free: 31.38 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.335e-06/1.732, allocations: 4 kB / 0.8753 GB, free: 31.38 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007753/1.74, allocations: 1.344 MB / 0.8766 GB, free: 30.04 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (167): * Single equations (assignments): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02977/1.77, allocations: 16.7 MB / 0.8929 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.3788/2.149, allocations: 8.05 MB / 0.9008 GB, free: 175.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.374e-05/2.149, allocations: 3.125 kB / 0.9008 GB, free: 175.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006706/2.155, allocations: 3.163 MB / 0.9039 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003623/2.159, allocations: 494.5 kB / 0.9043 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07133/2.23, allocations: 108.3 MB / 1.01 GB, free: 73.31 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00556/2.236, allocations: 3.607 MB / 1.014 GB, free: 71.96 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005073/2.241, allocations: 1.969 MB / 1.016 GB, free: 71.79 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003121/2.244, allocations: 2.077 MB / 1.018 GB, free: 70.11 MB / 0.5294 GB Notification: Performance of SimCode: time 1.934e-06/2.244, allocations: 0 / 1.018 GB, free: 70.11 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5022/2.746, allocations: 109.9 MB / 1.125 GB, free: 178.5 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001614/2.747, allocations: 213.7 kB / 1.125 GB, free: 178.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.357/7.104, allocations: 0 / 1.125 GB, free: 178.2 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat