Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",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.001695/0.0017, allocations: 188.3 kB / 16.4 MB, free: 5.625 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.257/2.257, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001104/0.001104, allocations: 98.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3107/0.3107, allocations: 43.55 MB / 362.7 MB, free: 11.33 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004877/0.000488, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1543, allocations: 58.85 MB / 490.3 MB, free: 9.25 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.0598/0.2142, allocations: 36.32 MB / 0.5143 GB, free: 4.824 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.3715/0.5857, allocations: 9.027 MB / 0.5231 GB, free: 9.918 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008025/0.5938, allocations: 175.2 kB / 0.5233 GB, free: 9.918 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007127/0.601, allocations: 1.836 MB / 0.5251 GB, free: 9.914 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0223/0.6234, allocations: 5.37 MB / 0.5303 GB, free: 9.828 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00359/0.627, allocations: 496.8 kB / 0.5308 GB, free: 9.824 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006564/0.6336, allocations: 2.358 MB / 0.5331 GB, free: 9.809 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009938/0.6436, allocations: 4.292 MB / 0.5373 GB, free: 8.762 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003364/0.647, allocations: 1.052 MB / 0.5383 GB, free: 8.574 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003662/0.6507, allocations: 1.433 MB / 0.5397 GB, free: 8.258 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001408/0.6522, allocations: 169.8 kB / 0.5399 GB, free: 8.254 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003907/0.6561, allocations: 0.8923 MB / 0.5407 GB, free: 8.062 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003219/0.6594, allocations: 1.715 MB / 0.5424 GB, free: 7.598 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002011/0.6615, allocations: 0.9451 MB / 0.5433 GB, free: 7.371 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00981/0.6713, allocations: 6.332 MB / 0.5495 GB, free: 3.945 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.6714, allocations: 0 / 0.5495 GB, free: 3.945 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.6714, allocations: 4 kB / 0.5495 GB, free: 3.941 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000323/0.6717, allocations: 0 / 0.5495 GB, free: 3.941 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1888 * Number of variables: 1888 Notification: Performance of Generate backend data structure: time 0.01575/0.6875, allocations: 4.571 MB / 0.554 GB, free: 1.188 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.6876, allocations: 11.53 kB / 0.554 GB, free: 1.184 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003137/0.6907, allocations: 0.8812 MB / 0.5549 GB, free: 0.9258 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02511/0.7159, allocations: 3.946 MB / 0.5587 GB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009291/0.7252, allocations: 2.534 MB / 0.5612 GB, free: 13.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004484/0.7257, allocations: 278.6 kB / 0.5615 GB, free: 13.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002349/0.7281, allocations: 359.7 kB / 0.5618 GB, free: 12.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03724/0.7654, allocations: 12.73 MB / 0.5742 GB, free: 3.348 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002363/0.7657, allocations: 30.47 kB / 0.5743 GB, free: 3.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002068/0.7677, allocations: 168 kB / 0.5744 GB, free: 3.277 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008351/0.7761, allocations: 2.761 MB / 0.5771 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03936/0.8155, allocations: 11.68 MB / 0.5885 GB, free: 4.863 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1008/0.9164, allocations: 40.55 MB / 0.6281 GB, free: 11.69 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0188/0.9353, allocations: 5.091 MB / 0.6331 GB, free: 6.379 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01999/0.9553, allocations: 6.891 MB / 0.6398 GB, free: 15.17 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.116e-05/0.9554, allocations: 48.56 kB / 0.6399 GB, free: 15.11 MB / 458.7 MB Notification: Performance of pre-optimization done (n=235): time 7.724e-06/0.9554, allocations: 0 / 0.6399 GB, free: 15.11 MB / 458.7 MB Notification: Performance of matching and sorting (n=244): time 0.07482/1.03, allocations: 17.04 MB / 0.6565 GB, free: 13.82 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.267e-05/1.03, allocations: 77.19 kB / 0.6566 GB, free: 13.74 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008973/1.039, allocations: 3.309 MB / 0.6598 GB, free: 10.43 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005913/1.04, allocations: 57.7 kB / 0.6599 GB, free: 10.36 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003693/1.044, allocations: 3.294 MB / 0.6631 GB, free: 7.082 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001753/1.046, allocations: 0.9103 MB / 0.664 GB, free: 6.18 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007551/1.046, allocations: 122.9 kB / 0.6641 GB, free: 6.062 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006673/1.047, allocations: 0.5751 MB / 0.6647 GB, free: 5.477 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007138/1.054, allocations: 2.397 MB / 0.667 GB, free: 3.074 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01101/1.065, allocations: 5.784 MB / 0.6727 GB, free: 11.61 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01005/1.075, allocations: 3.716 MB / 0.6763 GB, free: 7.891 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000127/1.076, allocations: 32 kB / 0.6763 GB, free: 7.859 MB / 490.7 MB Notification: Performance of matching and sorting (n=813) (initialization): time 0.02936/1.105, allocations: 8.895 MB / 0.685 GB, free: 14.95 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001198/1.105, allocations: 56 kB / 0.6851 GB, free: 14.9 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002185/1.105, allocations: 120 kB / 0.6852 GB, free: 14.78 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006537/1.112, allocations: 1.144 MB / 0.6863 GB, free: 13.63 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009362/1.121, allocations: 1.392 MB / 0.6876 GB, free: 12.24 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01065/1.132, allocations: 4.662 MB / 0.6922 GB, free: 7.418 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006467/1.139, allocations: 324.1 kB / 0.6925 GB, free: 7.102 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001521/1.14, allocations: 358.5 kB / 0.6929 GB, free: 6.754 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 540 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (752): * Single equations (assignments): 744 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 5} Notification: Performance of prepare postOptimizeDAE: time 0.007611/1.148, allocations: 2.439 MB / 0.6952 GB, free: 4.301 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008384/1.149, allocations: 304 kB / 0.6955 GB, free: 4 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0147/1.163, allocations: 4.491 MB / 0.6999 GB, free: 15.48 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001244/1.163, allocations: 43.98 kB / 0.6999 GB, free: 15.44 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/1.164, allocations: 4 kB / 0.7 GB, free: 15.44 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.777e-05/1.164, allocations: 11.97 kB / 0.7 GB, free: 15.43 MB / 0.5105 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03636/1.2, allocations: 10.78 MB / 0.7105 GB, free: 4.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.472e-05/1.2, allocations: 12.03 kB / 0.7105 GB, free: 4.508 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003889/1.204, allocations: 399.5 kB / 0.7109 GB, free: 4.117 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003943/1.208, allocations: 0.6774 MB / 0.7115 GB, free: 3.43 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006191/1.209, allocations: 47.98 kB / 0.7116 GB, free: 3.383 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004855/1.213, allocations: 2.452 MB / 0.714 GB, free: 0.7891 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.054e-05/1.214, allocations: 7.938 kB / 0.714 GB, free: 0.7812 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4259/1.639, allocations: 7.34 MB / 0.7212 GB, free: 177.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001571/1.641, allocations: 369.6 kB / 0.7215 GB, free: 177.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001781/1.643, allocations: 42.19 kB / 0.7216 GB, free: 177.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004319/1.647, allocations: 143.3 kB / 0.7217 GB, free: 177 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001134/1.648, allocations: 143.8 kB / 0.7218 GB, free: 177 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006182/1.649, allocations: 68.41 kB / 0.7219 GB, free: 177 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008127/1.657, allocations: 2.025 MB / 0.7239 GB, free: 176.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.493e-06/1.657, allocations: 1.219 kB / 0.7239 GB, free: 176.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01154/1.669, allocations: 1.094 MB / 0.7249 GB, free: 176.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (197): * Single equations (assignments): 188 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02979/1.699, allocations: 9.322 MB / 0.734 GB, free: 171.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02241/1.721, allocations: 5.869 MB / 0.7398 GB, free: 169.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.935e-05/1.721, allocations: 0 / 0.7398 GB, free: 169.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01019/1.731, allocations: 2.437 MB / 0.7422 GB, free: 168.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005307/1.737, allocations: 420.8 kB / 0.7426 GB, free: 168.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1236/1.861, allocations: 116.9 MB / 0.8567 GB, free: 56.15 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007495/1.868, allocations: 3.857 MB / 0.8605 GB, free: 52.26 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005367/1.873, allocations: 2.205 MB / 0.8626 GB, free: 50.05 MB / 0.5105 GB Notification: Performance of SimCode: time 2.725e-06/1.874, allocations: 0 / 0.8626 GB, free: 50.05 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.988/6.861, allocations: 141.1 MB / 1 GB, free: 105.1 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat