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.001457/0.001457, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.118/2.118, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001146/0.001145, allocations: 96.22 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2995/0.2995, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.628e-05/2.613e-05, allocations: 4.203 kB / 418.3 MB, free: 40.93 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4028/0.4029, allocations: 58.86 MB / 477.2 MB, free: 5.141 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2049/0.6078, allocations: 108.7 MB / 0.5721 GB, free: 6.48 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003047/0.6082, allocations: 75.95 kB / 0.5722 GB, free: 6.406 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8785/1.487, allocations: 124.6 MB / 0.6938 GB, free: 103.7 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.925e-06/1.487, allocations: 0 / 0.6938 GB, free: 103.7 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0005512/1.487, allocations: 122.4 kB / 0.6939 GB, free: 103.7 MB / 475.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.03624/1.524, allocations: 6.329 MB / 0.7001 GB, free: 100.8 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.185e-05/1.524, allocations: 7.219 kB / 0.7001 GB, free: 100.8 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08542/1.609, allocations: 8.323 MB / 0.7083 GB, free: 96.88 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03983/1.649, allocations: 7.379 MB / 0.7155 GB, free: 91.9 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006146/1.65, allocations: 188 kB / 0.7156 GB, free: 91.72 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004927/1.655, allocations: 351.9 kB / 0.716 GB, free: 91.38 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03565/1.69, allocations: 10.16 MB / 0.7259 GB, free: 81.21 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05182/1.742, allocations: 14.1 MB / 0.7397 GB, free: 65.95 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005798/1.743, allocations: 71.34 kB / 0.7398 GB, free: 65.88 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004361/1.747, allocations: 32 kB / 0.7398 GB, free: 65.85 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005064/1.752, allocations: 1.623 MB / 0.7414 GB, free: 64.23 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1454/1.898, allocations: 61.51 MB / 0.8014 GB, free: 1.41 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01735/1.915, allocations: 5.589 MB / 0.8069 GB, free: 11.57 MB / 491.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0117/1.927, allocations: 3.446 MB / 0.8103 GB, free: 8.109 MB / 491.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06076/1.988, allocations: 14.13 MB / 0.8241 GB, free: 9.547 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001406/1.988, allocations: 60.5 kB / 0.8241 GB, free: 9.48 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=289): time 1.112e-05/1.988, allocations: 0 / 0.8241 GB, free: 9.48 MB / 0.4952 GB Notification: Performance of matching and sorting (n=339): time 0.536/2.524, allocations: 30.94 MB / 0.8543 GB, free: 123.1 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/2.524, allocations: 216.2 kB / 0.8545 GB, free: 122.9 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01207/2.536, allocations: 4.296 MB / 0.8587 GB, free: 122.4 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.001025/2.538, allocations: 29.39 kB / 0.8588 GB, free: 122.4 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.003917/2.541, allocations: 4.438 MB / 0.8631 GB, free: 119.7 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002286/2.544, allocations: 1.219 MB / 0.8643 GB, free: 119 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001318/2.545, allocations: 3.969 kB / 0.8643 GB, free: 119 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0007547/2.546, allocations: 0.7076 MB / 0.865 GB, free: 118.7 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009653/2.556, allocations: 4.394 MB / 0.8693 GB, free: 117.7 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.013/2.569, allocations: 9.592 MB / 0.8786 GB, free: 109 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01361/2.582, allocations: 6.384 MB / 0.8849 GB, free: 106.9 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002102/2.583, allocations: 59.12 kB / 0.8849 GB, free: 106.9 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.07025/2.653, allocations: 17.57 MB / 0.9021 GB, free: 101.9 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001399/2.653, allocations: 84.25 kB / 0.9022 GB, free: 101.9 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002908/2.653, allocations: 186.5 kB / 0.9023 GB, free: 101.9 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03981/2.693, allocations: 5.634 MB / 0.9078 GB, free: 101 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01428/2.707, allocations: 2.147 MB / 0.9099 GB, free: 100.8 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04554/2.753, allocations: 21.62 MB / 0.931 GB, free: 84.08 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01218/2.765, allocations: 395 kB / 0.9314 GB, free: 83.79 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002698/2.768, allocations: 0.5257 MB / 0.9319 GB, free: 83.28 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 841 * 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 (1109): * Single equations (assignments): 1101 * 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.003669/2.772, allocations: 0.5621 MB / 0.9325 GB, free: 82.71 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05238/2.824, allocations: 11.93 MB / 0.9441 GB, free: 73.47 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002152/2.826, allocations: 484.5 kB / 0.9446 GB, free: 72.99 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05393/2.88, allocations: 12.09 MB / 0.9564 GB, free: 60.84 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001742/2.881, allocations: 57.23 kB / 0.9565 GB, free: 60.78 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.57e-05/2.881, allocations: 12 kB / 0.9565 GB, free: 60.77 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.033e-05/2.881, allocations: 11.95 kB / 0.9565 GB, free: 60.76 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08382/2.965, allocations: 22.6 MB / 0.9785 GB, free: 37.71 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.893e-05/2.965, allocations: 4.594 kB / 0.9785 GB, free: 37.71 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005822/2.971, allocations: 0.5772 MB / 0.9791 GB, free: 37.13 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03477/3.005, allocations: 4.631 MB / 0.9836 GB, free: 32.49 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009346/3.006, allocations: 12 kB / 0.9836 GB, free: 32.48 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03628/3.043, allocations: 17.33 MB / 1.001 GB, free: 14.92 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-05/3.043, allocations: 8 kB / 1.001 GB, free: 14.91 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06006/3.103, allocations: 17.08 MB / 1.017 GB, free: 13.53 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005646/3.109, allocations: 1.197 MB / 1.018 GB, free: 12.31 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002341/3.111, allocations: 8 kB / 1.018 GB, free: 12.3 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006648/3.118, allocations: 206.8 kB / 1.019 GB, free: 12.1 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001552/3.119, allocations: 197.6 kB / 1.019 GB, free: 11.91 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007107/3.12, allocations: 84.86 kB / 1.019 GB, free: 11.83 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.3738/3.494, allocations: 2.856 MB / 1.022 GB, free: 128.5 MB / 0.5108 GB Notification: Performance of sort global known variables: time 1.152e-06/3.494, allocations: 1.031 kB / 1.022 GB, free: 128.5 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.0136/3.507, allocations: 1.495 MB / 1.023 GB, free: 128.5 MB / 0.5108 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.06564/3.573, allocations: 18.79 MB / 1.042 GB, free: 125.5 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.02195/3.595, allocations: 10.08 MB / 1.051 GB, free: 124.7 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/3.595, allocations: 0 / 1.051 GB, free: 124.7 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.008275/3.604, allocations: 3.866 MB / 1.055 GB, free: 123.1 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004725/3.608, allocations: 464.9 kB / 1.056 GB, free: 122.9 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05214/3.661, allocations: 15.96 MB / 1.071 GB, free: 117.1 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01286/3.673, allocations: 4.763 MB / 1.076 GB, free: 115.5 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009451/3.683, allocations: 2.967 MB / 1.079 GB, free: 113.1 MB / 0.5108 GB Notification: Performance of SimCode: time 1.893e-06/3.683, allocations: 0 / 1.079 GB, free: 113.1 MB / 0.5108 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.916/9.599, allocations: 178.1 MB / 1.253 GB, free: 144.3 MB / 0.5265 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