Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_3_2_3_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.001123/0.001123, allocations: 186.4 kB / 13.19 MB, free: 2.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.646/1.646, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.0009453/0.0009451, allocations: 90.55 kB / 267.1 MB, free: 9.277 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.4372/0.4372, allocations: 43.46 MB / 358.6 MB, free: 52.3 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.203e-05/3.205e-05, allocations: 0 / 425.4 MB, free: 8.812 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.1507, allocations: 58.85 MB / 484.2 MB, free: 13.86 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5046/0.6554, allocations: 109.3 MB / 0.5797 GB, free: 11.57 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003417/0.6558, allocations: 79.95 kB / 0.5797 GB, free: 11.5 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6907/1.347, allocations: 127 MB / 0.7038 GB, free: 85.74 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.184e-06/1.347, allocations: 3.938 kB / 0.7038 GB, free: 85.74 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003915/1.347, allocations: 123 kB / 0.7039 GB, free: 85.73 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.02463/1.372, allocations: 6.329 MB / 0.7101 GB, free: 83.29 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.898e-05/1.372, allocations: 16.41 kB / 0.7101 GB, free: 83.29 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006672/1.378, allocations: 1.311 MB / 0.7114 GB, free: 83.18 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03913/1.418, allocations: 8.32 MB / 0.7195 GB, free: 82.73 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02365/1.441, allocations: 7.384 MB / 0.7267 GB, free: 81.89 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006726/1.442, allocations: 449.7 kB / 0.7271 GB, free: 81.88 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004751/1.447, allocations: 0.5866 MB / 0.7277 GB, free: 81.88 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03713/1.484, allocations: 15.63 MB / 0.743 GB, free: 75.62 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000344/1.484, allocations: 66.72 kB / 0.743 GB, free: 75.59 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002265/1.487, allocations: 291.8 kB / 0.7433 GB, free: 75.43 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002122/1.489, allocations: 1.62 MB / 0.7449 GB, free: 75.13 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02929/1.518, allocations: 13.81 MB / 0.7584 GB, free: 70.79 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08343/1.602, allocations: 64.1 MB / 0.821 GB, free: 18 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01247/1.614, allocations: 6.415 MB / 0.8272 GB, free: 11.96 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004113/1.618, allocations: 3.535 MB / 0.8307 GB, free: 8.414 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02301/1.641, allocations: 14.45 MB / 0.8448 GB, free: 9.527 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.891e-05/1.641, allocations: 56.56 kB / 0.8449 GB, free: 9.465 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=289): time 9.397e-06/1.641, allocations: 0 / 0.8449 GB, free: 9.465 MB / 0.4948 GB Notification: Performance of matching and sorting (n=339): time 0.4737/2.115, allocations: 29.79 MB / 0.8739 GB, free: 93.52 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/2.115, allocations: 214.1 kB / 0.8741 GB, free: 93.29 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009788/2.125, allocations: 4.804 MB / 0.8788 GB, free: 92.86 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001019/2.126, allocations: 71.88 kB / 0.8789 GB, free: 92.82 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003843/2.13, allocations: 4.438 MB / 0.8832 GB, free: 90.54 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002122/2.132, allocations: 1.25 MB / 0.8845 GB, free: 89.8 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000812/2.133, allocations: 175.6 kB / 0.8846 GB, free: 89.8 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005226/2.133, allocations: 0.6792 MB / 0.8853 GB, free: 89.48 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006988/2.14, allocations: 4.49 MB / 0.8897 GB, free: 89.46 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0135/2.154, allocations: 9.441 MB / 0.8989 GB, free: 82.52 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01502/2.169, allocations: 6.419 MB / 0.9052 GB, free: 80.45 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004207/2.17, allocations: 56.44 kB / 0.9052 GB, free: 80.45 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1152) (initialization): time 0.05051/2.22, allocations: 18.58 MB / 0.9234 GB, free: 74.97 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001725/2.22, allocations: 83.09 kB / 0.9234 GB, free: 74.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002867/2.221, allocations: 172.7 kB / 0.9236 GB, free: 74.97 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02114/2.242, allocations: 5.633 MB / 0.9291 GB, free: 74.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008468/2.25, allocations: 2.064 MB / 0.9311 GB, free: 73.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02859/2.279, allocations: 23.63 MB / 0.9542 GB, free: 62.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01115/2.29, allocations: 0.5408 MB / 0.9547 GB, free: 62.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00281/2.293, allocations: 0.5082 MB / 0.9552 GB, free: 62.62 MB / 0.4948 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 () * 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.002926/2.296, allocations: 0.7516 MB / 0.956 GB, free: 62.01 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001499/2.297, allocations: 0.4948 MB / 0.9564 GB, free: 61.73 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02874/2.326, allocations: 12.35 MB / 0.9685 GB, free: 57.86 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001036/2.326, allocations: 52.94 kB / 0.9686 GB, free: 57.86 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-05/2.326, allocations: 7.5 kB / 0.9686 GB, free: 57.86 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.307e-05/2.326, allocations: 16.75 kB / 0.9686 GB, free: 57.86 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05087/2.377, allocations: 23.98 MB / 0.992 GB, free: 39.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.579e-05/2.377, allocations: 4.562 kB / 0.992 GB, free: 39.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003383/2.381, allocations: 0.5746 MB / 0.9926 GB, free: 38.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01765/2.398, allocations: 4.646 MB / 0.9971 GB, free: 34.22 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009132/2.399, allocations: 52 kB / 0.9971 GB, free: 34.17 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02245/2.422, allocations: 18.93 MB / 1.016 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.425e-06/2.422, allocations: 12 kB / 1.016 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03478/2.457, allocations: 17.37 MB / 1.033 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004945/2.462, allocations: 1.228 MB / 1.034 GB, free: 12.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002905/2.465, allocations: 52 kB / 1.034 GB, free: 12.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005085/2.47, allocations: 251.6 kB / 1.034 GB, free: 11.78 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001277/2.471, allocations: 197.8 kB / 1.034 GB, free: 11.59 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007553/2.472, allocations: 80 kB / 1.034 GB, free: 11.52 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009752/2.482, allocations: 3.33 MB / 1.038 GB, free: 8.207 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.81e-07/2.482, allocations: 0 / 1.038 GB, free: 8.207 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01289/2.495, allocations: 1.717 MB / 1.039 GB, free: 6.5 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 () * 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.4625/2.957, allocations: 19.09 MB / 1.058 GB, free: 99.96 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01807/2.975, allocations: 10.39 MB / 1.068 GB, free: 99.76 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/2.975, allocations: 0 / 1.068 GB, free: 99.76 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005551/2.981, allocations: 3.94 MB / 1.072 GB, free: 99.61 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003585/2.984, allocations: 0.5851 MB / 1.073 GB, free: 99.59 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04521/3.03, allocations: 15.61 MB / 1.088 GB, free: 94.77 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008155/3.038, allocations: 4.76 MB / 1.092 GB, free: 93.2 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008238/3.046, allocations: 3.001 MB / 1.095 GB, free: 93.14 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00517/3.051, allocations: 2.928 MB / 1.098 GB, free: 90.74 MB / 0.5105 GB Notification: Performance of SimCode: time 1.352e-06/3.051, allocations: 2.438 kB / 1.098 GB, free: 90.74 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1951/3.246, allocations: 135.3 MB / 1.23 GB, free: 13.2 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001843/3.247, allocations: 187 kB / 1.231 GB, free: 12.97 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.678/8.925, allocations: 0 / 1.231 GB, free: 12.97 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat