Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001556/0.001556, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.04/2.04, allocations: 205.4 MB / 222.5 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001227/0.001227, allocations: 93.3 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5253/0.5253, allocations: 43.55 MB / 362.7 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007483/0.0007483, allocations: 16 kB / 431.5 MB, free: 5.867 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1427, allocations: 58.84 MB / 490.3 MB, free: 10.94 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5482/0.691, allocations: 109.4 MB / 0.5857 GB, free: 8.965 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003051/0.6914, allocations: 79.95 kB / 0.5857 GB, free: 8.887 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9486/1.64, allocations: 126.9 MB / 0.7097 GB, free: 86.85 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.537e-06/1.64, allocations: 0 / 0.7097 GB, free: 86.85 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004319/1.641, allocations: 118.2 kB / 0.7098 GB, free: 86.85 MB / 490.7 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.03151/1.672, allocations: 6.79 MB / 0.7164 GB, free: 84.21 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.799e-05/1.672, allocations: 9.875 kB / 0.7164 GB, free: 84.21 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00704/1.679, allocations: 1.312 MB / 0.7177 GB, free: 84.11 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06236/1.742, allocations: 8.315 MB / 0.7258 GB, free: 83.66 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02851/1.77, allocations: 7.417 MB / 0.7331 GB, free: 82.79 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006943/1.771, allocations: 453.4 kB / 0.7335 GB, free: 82.77 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004495/1.775, allocations: 0.5902 MB / 0.7341 GB, free: 82.76 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05065/1.826, allocations: 15.74 MB / 0.7495 GB, free: 76.37 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004453/1.827, allocations: 73.5 kB / 0.7495 GB, free: 76.32 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003616/1.83, allocations: 285.1 kB / 0.7498 GB, free: 76.17 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003703/1.834, allocations: 1.623 MB / 0.7514 GB, free: 75.88 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04237/1.876, allocations: 14.02 MB / 0.7651 GB, free: 71.48 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1074/1.984, allocations: 64.09 MB / 0.8277 GB, free: 15.45 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02337/2.007, allocations: 6.46 MB / 0.834 GB, free: 8.738 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03842/2.046, allocations: 14.45 MB / 0.8481 GB, free: 9.859 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.382e-05/2.046, allocations: 64.5 kB / 0.8482 GB, free: 9.785 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=289): time 8.506e-06/2.046, allocations: 4 kB / 0.8482 GB, free: 9.781 MB / 0.4949 GB Notification: Performance of matching and sorting (n=339): time 0.6659/2.712, allocations: 42.35 MB / 0.8895 GB, free: 93.93 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/2.712, allocations: 213.6 kB / 0.8897 GB, free: 93.71 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01437/2.726, allocations: 4.846 MB / 0.8945 GB, free: 93.3 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001057/2.728, allocations: 72.98 kB / 0.8945 GB, free: 93.27 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.004484/2.732, allocations: 4.297 MB / 0.8987 GB, free: 90.89 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002373/2.735, allocations: 1.259 MB / 0.9 GB, free: 90.16 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001996/2.737, allocations: 175.5 kB / 0.9001 GB, free: 90.16 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001009/2.738, allocations: 0.6865 MB / 0.9008 GB, free: 89.82 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01297/2.751, allocations: 4.567 MB / 0.9053 GB, free: 89.8 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01617/2.767, allocations: 9.521 MB / 0.9146 GB, free: 82.25 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0156/2.782, allocations: 6.448 MB / 0.9209 GB, free: 79.86 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002296/2.783, allocations: 50.44 kB / 0.9209 GB, free: 79.86 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1152) (initialization): time 0.07405/2.857, allocations: 18.56 MB / 0.939 GB, free: 73.99 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001375/2.857, allocations: 80.59 kB / 0.9391 GB, free: 73.99 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003051/2.857, allocations: 171.5 kB / 0.9393 GB, free: 73.99 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04087/2.898, allocations: 5.637 MB / 0.9448 GB, free: 73.13 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01345/2.912, allocations: 2.063 MB / 0.9468 GB, free: 72.89 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05048/2.962, allocations: 24.3 MB / 0.9705 GB, free: 61.39 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01231/2.975, allocations: 0.5394 MB / 0.971 GB, free: 60.95 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002411/2.977, allocations: 0.5014 MB / 0.9715 GB, free: 60.46 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 793 * 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 (1061): * Single equations (assignments): 1053 * 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.009854/2.987, allocations: 3.101 MB / 0.9746 GB, free: 57.75 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001816/2.989, allocations: 0.5013 MB / 0.975 GB, free: 57.25 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05597/3.045, allocations: 12.43 MB / 0.9872 GB, free: 48.05 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001238/3.045, allocations: 58.38 kB / 0.9872 GB, free: 48 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.512e-05/3.045, allocations: 8 kB / 0.9872 GB, free: 47.99 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.387e-05/3.045, allocations: 17.73 kB / 0.9873 GB, free: 47.99 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0851/3.13, allocations: 24.06 MB / 1.011 GB, free: 23.73 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-05/3.13, allocations: 8 kB / 1.011 GB, free: 23.72 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005808/3.136, allocations: 0.5733 MB / 1.011 GB, free: 23.14 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03564/3.172, allocations: 4.647 MB / 1.016 GB, free: 18.49 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001074/3.173, allocations: 62.95 kB / 1.016 GB, free: 18.43 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04126/3.214, allocations: 19.56 MB / 1.035 GB, free: 14.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-05/3.214, allocations: 7.938 kB / 1.035 GB, free: 14.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4548/3.669, allocations: 17.5 MB / 1.052 GB, free: 98.26 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005035/3.674, allocations: 1.226 MB / 1.053 GB, free: 98.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00212/3.676, allocations: 52.47 kB / 1.053 GB, free: 98.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006255/3.683, allocations: 250.3 kB / 1.054 GB, free: 98.16 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001403/3.684, allocations: 199.4 kB / 1.054 GB, free: 98.16 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005378/3.685, allocations: 87.56 kB / 1.054 GB, free: 98.16 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009125/3.694, allocations: 3.372 MB / 1.057 GB, free: 97.98 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.71e-07/3.694, allocations: 0 / 1.057 GB, free: 97.98 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01219/3.706, allocations: 1.719 MB / 1.059 GB, free: 97.98 MB / 0.5105 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.06334/3.769, allocations: 19.19 MB / 1.078 GB, free: 94.91 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02772/3.797, allocations: 10.53 MB / 1.088 GB, free: 93.07 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.54e-05/3.797, allocations: 0 / 1.088 GB, free: 93.07 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01079/3.808, allocations: 4.002 MB / 1.092 GB, free: 91.44 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006226/3.814, allocations: 0.5779 MB / 1.092 GB, free: 91.19 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1065/3.921, allocations: 150.8 MB / 1.24 GB, free: 11.4 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01234/3.933, allocations: 4.768 MB / 1.244 GB, free: 9.805 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008585/3.942, allocations: 2.974 MB / 1.247 GB, free: 7.418 MB / 0.573 GB Notification: Performance of SimCode: time 2.064e-06/3.942, allocations: 0 / 1.247 GB, free: 7.418 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.849/9.791, allocations: 179.5 MB / 1.422 GB, free: 92.27 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat