Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001031/0.001031, allocations: 93.61 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00152/0.00152, allocations: 192.9 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.522/1.522, allocations: 227.4 MB / 246 MB, free: 10.27 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.91 MB / 344.1 MB, free: 12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003404/0.0003405, allocations: 11.94 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1433, allocations: 63.45 MB / 481.6 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3934/0.5368, allocations: 48.42 MB / 0.5176 GB, free: 9.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0326/0.5694, allocations: 10.67 MB / 0.528 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01379/0.5832, allocations: 232.9 kB / 0.5283 GB, free: 8.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01039/0.5937, allocations: 2.512 MB / 0.5307 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02738/0.6211, allocations: 7.578 MB / 0.5381 GB, free: 5.199 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005386/0.6265, allocations: 0.8521 MB / 0.539 GB, free: 4.953 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.08497/0.7115, allocations: 62.96 MB / 0.6004 GB, free: 14.49 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01069/0.7223, allocations: 5.101 MB / 0.6054 GB, free: 9.328 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006272/0.7286, allocations: 1.891 MB / 0.6073 GB, free: 7.43 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007757/0.7364, allocations: 3.124 MB / 0.6103 GB, free: 4.297 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002405/0.7388, allocations: 240 kB / 0.6105 GB, free: 4.062 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004653/0.7435, allocations: 1.112 MB / 0.6116 GB, free: 2.949 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004567/0.7481, allocations: 2.575 MB / 0.6141 GB, free: 376 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002951/0.7511, allocations: 1.201 MB / 0.6153 GB, free: 15.16 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01238/0.7635, allocations: 8.09 MB / 0.6232 GB, free: 7.043 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.333e-05/0.7635, allocations: 0 / 0.6232 GB, free: 7.043 MB / 462.1 MB Notification: Performance of FrontEnd: time 4.678e-06/0.7636, allocations: 0 / 0.6232 GB, free: 7.043 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006914/0.7643, allocations: 0 / 0.6232 GB, free: 7.043 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01803/0.7823, allocations: 6.34 MB / 0.6294 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.7824, allocations: 12.03 kB / 0.6294 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003844/0.7862, allocations: 1.14 MB / 0.6305 GB, free: 15.45 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03883/0.8251, allocations: 7.601 MB / 0.638 GB, free: 7.832 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01136/0.8365, allocations: 4.549 MB / 0.6424 GB, free: 3.223 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003813/0.8369, allocations: 320 kB / 0.6427 GB, free: 2.906 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002111/0.839, allocations: 431.7 kB / 0.6431 GB, free: 2.484 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03154/0.8706, allocations: 15.61 MB / 0.6584 GB, free: 1.941 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002954/0.8709, allocations: 67.42 kB / 0.6584 GB, free: 1.875 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001906/0.8728, allocations: 203.8 kB / 0.6586 GB, free: 1.676 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005008/0.8778, allocations: 3.216 MB / 0.6618 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02577/0.9037, allocations: 13.91 MB / 0.6753 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3563/1.26, allocations: 57.37 MB / 0.7314 GB, free: 148.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01792/1.278, allocations: 6.504 MB / 0.7377 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008906/1.287, allocations: 3.612 MB / 0.7412 GB, free: 145.1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03551/1.322, allocations: 14.44 MB / 0.7553 GB, free: 137.7 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.433e-05/1.323, allocations: 66.34 kB / 0.7554 GB, free: 137.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=289): time 9.588e-06/1.323, allocations: 0.9375 kB / 0.7554 GB, free: 137.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=339): time 0.1431/1.466, allocations: 41.99 MB / 0.7964 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.923e-05/1.466, allocations: 210 kB / 0.7966 GB, free: 104.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01033/1.476, allocations: 5.455 MB / 0.8019 GB, free: 98.66 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001005/1.477, allocations: 77.7 kB / 0.802 GB, free: 98.58 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003171/1.48, allocations: 4.413 MB / 0.8063 GB, free: 94.17 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001771/1.482, allocations: 1.248 MB / 0.8075 GB, free: 92.93 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007363/1.483, allocations: 175.3 kB / 0.8077 GB, free: 92.76 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0004089/1.483, allocations: 0.6814 MB / 0.8084 GB, free: 92.07 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006187/1.49, allocations: 4.612 MB / 0.8129 GB, free: 87.45 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008798/1.498, allocations: 9.572 MB / 0.8222 GB, free: 75.51 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0089/1.507, allocations: 6.498 MB / 0.8286 GB, free: 69 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001312/1.508, allocations: 48 kB / 0.8286 GB, free: 68.95 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04228/1.55, allocations: 18.95 MB / 0.8471 GB, free: 49.95 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002938/1.55, allocations: 80.06 kB / 0.8472 GB, free: 49.87 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003687/1.551, allocations: 176 kB / 0.8474 GB, free: 49.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01943/1.57, allocations: 5.827 MB / 0.8531 GB, free: 43.86 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007335/1.577, allocations: 2.063 MB / 0.8551 GB, free: 41.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02885/1.606, allocations: 24.3 MB / 0.8788 GB, free: 17.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007644/1.614, allocations: 0.5422 MB / 0.8793 GB, free: 16.69 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001965/1.616, allocations: 0.5089 MB / 0.8798 GB, free: 16.18 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.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 (1058): * Single equations (assignments): 1050 * Array equations: 6 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006967/1.623, allocations: 3.089 MB / 0.8829 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001401/1.624, allocations: 0.4975 MB / 0.8833 GB, free: 12.57 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02881/1.653, allocations: 12.68 MB / 0.8957 GB, free: 15.82 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001117/1.653, allocations: 61.56 kB / 0.8958 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.768e-05/1.653, allocations: 12.47 kB / 0.8958 GB, free: 15.75 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.288e-05/1.653, allocations: 15.94 kB / 0.8958 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4073/2.061, allocations: 24.42 MB / 0.9197 GB, free: 180.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.291e-05/2.061, allocations: 5.938 kB / 0.9197 GB, free: 180.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003681/2.065, allocations: 0.5766 MB / 0.9202 GB, free: 180.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01849/2.083, allocations: 4.838 MB / 0.9249 GB, free: 180 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008794/2.084, allocations: 56.89 kB / 0.925 GB, free: 180 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02532/2.109, allocations: 19.56 MB / 0.9441 GB, free: 170.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-06/2.109, allocations: 12.03 kB / 0.9441 GB, free: 170.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03101/2.14, allocations: 17.1 MB / 0.9608 GB, free: 161.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001681/2.142, allocations: 0.544 MB / 0.9613 GB, free: 161.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001249/2.143, allocations: 57.19 kB / 0.9614 GB, free: 161.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002804/2.146, allocations: 261.2 kB / 0.9616 GB, free: 161 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007652/2.147, allocations: 197.5 kB / 0.9618 GB, free: 160.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002776/2.147, allocations: 87.19 kB / 0.9619 GB, free: 160.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005311/2.153, allocations: 3.393 MB / 0.9652 GB, free: 157.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.402e-06/2.153, allocations: 0 / 0.9652 GB, free: 157.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008311/2.161, allocations: 1.721 MB / 0.9669 GB, free: 155.6 MB / 0.545 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 (254): * Single equations (assignments): 246 * Array equations: 6 * 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 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03083/2.192, allocations: 17.76 MB / 0.9842 GB, free: 137.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0163/2.208, allocations: 10.6 MB / 0.9946 GB, free: 127.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/2.208, allocations: 0 / 0.9946 GB, free: 127.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005694/2.214, allocations: 4.046 MB / 0.9986 GB, free: 123.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005235/2.219, allocations: 0.6214 MB / 0.9992 GB, free: 122.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1161/2.335, allocations: 64.67 MB / 1.062 GB, free: 53.06 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006325/2.342, allocations: 4.619 MB / 1.067 GB, free: 48.41 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00736/2.349, allocations: 2.987 MB / 1.07 GB, free: 45.41 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004852/2.354, allocations: 2.924 MB / 1.073 GB, free: 42.49 MB / 0.545 GB Notification: Performance of SimCode: time 1.784e-06/2.354, allocations: 0 / 1.073 GB, free: 42.49 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.448/2.802, allocations: 135.7 MB / 1.205 GB, free: 108.5 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001533/2.802, allocations: 221.1 kB / 1.205 GB, free: 108.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.048/7.85, allocations: 0 / 1.205 GB, free: 108.2 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat