Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009632/0.0009633, allocations: 96.83 kB / 15.68 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 176.2 kB / 16.56 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.71/1.71, allocations: 205.4 MB / 222.7 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3681/0.3681, allocations: 43.55 MB / 314.5 MB, free: 9.039 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006003/0.0006006, allocations: 16 kB / 384 MB, free: 8.176 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1553, allocations: 58.85 MB / 442.8 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit): time 0.3812/0.5366, allocations: 29.18 MB / 472 MB, free: 34.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02322/0.5599, allocations: 7.522 MB / 479.5 MB, free: 29.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008189/0.5681, allocations: 140.3 kB / 479.7 MB, free: 29.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006281/0.5744, allocations: 1.469 MB / 481.1 MB, free: 28.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01623/0.5907, allocations: 4.428 MB / 485.6 MB, free: 26.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002382/0.5931, allocations: 417.8 kB / 486 MB, free: 26.67 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004526/0.5977, allocations: 2.124 MB / 488.1 MB, free: 25.74 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005371/0.6031, allocations: 3.357 MB / 491.5 MB, free: 24.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002225/0.6053, allocations: 0.9386 MB / 492.4 MB, free: 24.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002661/0.608, allocations: 1.296 MB / 493.7 MB, free: 23.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001129/0.6091, allocations: 150.9 kB / 493.8 MB, free: 23.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003062/0.6122, allocations: 0.8474 MB / 494.7 MB, free: 23.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003095/0.6153, allocations: 1.522 MB / 496.2 MB, free: 23.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00272/0.6181, allocations: 0.8452 MB / 497.1 MB, free: 22.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0111/0.6292, allocations: 5.595 MB / 0.4909 GB, free: 21.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.6292, allocations: 0 / 0.4909 GB, free: 21.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.357e-06/0.6293, allocations: 0 / 0.4909 GB, free: 21.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004336/0.6297, allocations: 0 / 0.4909 GB, free: 21.3 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1699 * Number of variables: 1699 Notification: Performance of Generate backend data structure: time 0.01881/0.6485, allocations: 4.143 MB / 0.4949 GB, free: 18.67 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.508e-05/0.6486, allocations: 9.688 kB / 0.4949 GB, free: 18.67 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004606/0.6532, allocations: 0.7959 MB / 0.4957 GB, free: 18.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01539/0.6686, allocations: 3.807 MB / 0.4994 GB, free: 16.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009085/0.6778, allocations: 2.327 MB / 0.5017 GB, free: 14.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004506/0.6783, allocations: 225.2 kB / 0.5019 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003006/0.6813, allocations: 301.2 kB / 0.5022 GB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03354/0.7149, allocations: 11.49 MB / 0.5134 GB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003143/0.7152, allocations: 31.72 kB / 0.5135 GB, free: 7.266 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002922/0.7182, allocations: 135.8 kB / 0.5136 GB, free: 7.133 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005197/0.7234, allocations: 2.636 MB / 0.5162 GB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03013/0.7536, allocations: 10.73 MB / 0.5266 GB, free: 9.738 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07815/0.8318, allocations: 36.53 MB / 0.5623 GB, free: 4.395 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009909/0.8418, allocations: 4.393 MB / 0.5666 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001671/0.8435, allocations: 1.318 MB / 0.5679 GB, free: 14.24 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.627e-05/0.8436, allocations: 56.56 kB / 0.5679 GB, free: 14.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=244): time 8.726e-06/0.8436, allocations: 0 / 0.5679 GB, free: 14.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=265): time 0.04708/0.8907, allocations: 14.5 MB / 0.5821 GB, free: 15.51 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.407e-05/0.8908, allocations: 85.34 kB / 0.5822 GB, free: 15.41 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005369/0.8962, allocations: 2.934 MB / 0.585 GB, free: 12.46 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007785/0.897, allocations: 65.69 kB / 0.5851 GB, free: 12.39 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003276/0.9003, allocations: 2.942 MB / 0.588 GB, free: 9.402 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001898/0.9022, allocations: 0.9751 MB / 0.5889 GB, free: 8.414 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000284/0.9025, allocations: 116 kB / 0.589 GB, free: 8.301 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0005073/0.903, allocations: 0.5541 MB / 0.5896 GB, free: 7.738 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003881/0.9069, allocations: 2.338 MB / 0.5919 GB, free: 5.395 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006415/0.9133, allocations: 5.486 MB / 0.5972 GB, free: 14.36 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006417/0.9197, allocations: 3.599 MB / 0.6007 GB, free: 10.76 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.309e-05/0.9198, allocations: 32 kB / 0.6008 GB, free: 10.73 MB / 478.1 MB Notification: Performance of matching and sorting (n=776) (initialization): time 0.0196/0.9395, allocations: 8.557 MB / 0.6091 GB, free: 2.152 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.413e-05/0.9396, allocations: 56.06 kB / 0.6092 GB, free: 2.098 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001544/0.9398, allocations: 112 kB / 0.6093 GB, free: 1.988 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003805/0.9436, allocations: 1.048 MB / 0.6103 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005745/0.9493, allocations: 1.341 MB / 0.6116 GB, free: 15.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003262/0.9526, allocations: 2.506 MB / 0.6141 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005464/0.9581, allocations: 319.6 kB / 0.6144 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001587/0.9597, allocations: 339.9 kB / 0.6147 GB, free: 12.3 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 502 * Number of states: 0 () * Number of discrete variables: 24 (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 (723): * Single equations (assignments): 714 * 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 prepare postOptimizeDAE: time 0.007623/0.9674, allocations: 2.272 MB / 0.6169 GB, free: 10.01 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007689/0.9681, allocations: 288.2 kB / 0.6172 GB, free: 9.727 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01139/0.9795, allocations: 5.071 MB / 0.6221 GB, free: 4.586 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001049/0.9797, allocations: 51.98 kB / 0.6222 GB, free: 4.535 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.987e-05/0.9798, allocations: 4 kB / 0.6222 GB, free: 4.531 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-05/0.9798, allocations: 11.95 kB / 0.6222 GB, free: 4.52 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3465/1.326, allocations: 11.55 MB / 0.6335 GB, free: 138.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-05/1.326, allocations: 9.922 kB / 0.6335 GB, free: 138.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001842/1.328, allocations: 426.8 kB / 0.6339 GB, free: 138.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003309/1.332, allocations: 0.9116 MB / 0.6348 GB, free: 138.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003347/1.332, allocations: 60.97 kB / 0.6349 GB, free: 138.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002259/1.334, allocations: 2.303 MB / 0.6371 GB, free: 137.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.215e-06/1.334, allocations: 11.81 kB / 0.6371 GB, free: 137.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01226/1.346, allocations: 8.165 MB / 0.6451 GB, free: 134.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001249/1.348, allocations: 333.2 kB / 0.6454 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004742/1.348, allocations: 60.17 kB / 0.6455 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001342/1.35, allocations: 138.5 kB / 0.6456 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003239/1.35, allocations: 156.7 kB / 0.6457 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001822/1.35, allocations: 80.52 kB / 0.6458 GB, free: 134.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00293/1.353, allocations: 1.807 MB / 0.6476 GB, free: 133.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.71e-07/1.353, allocations: 0 / 0.6476 GB, free: 133.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005362/1.358, allocations: 1.019 MB / 0.6486 GB, free: 133.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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,freeMotionScalarInit.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_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 (216): * Single equations (assignments): 207 * 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.01503/1.373, allocations: 10.77 MB / 0.6591 GB, free: 127.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01304/1.387, allocations: 6.152 MB / 0.6651 GB, free: 125.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.358e-05/1.387, allocations: 1.406 kB / 0.6651 GB, free: 125.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005798/1.392, allocations: 2.598 MB / 0.6676 GB, free: 124.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002886/1.395, allocations: 405.6 kB / 0.668 GB, free: 124.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08896/1.484, allocations: 108.6 MB / 0.7741 GB, free: 22.28 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00408/1.488, allocations: 3.605 MB / 0.7776 GB, free: 19.29 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004642/1.493, allocations: 2.091 MB / 0.7797 GB, free: 17.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002362/1.496, allocations: 1.979 MB / 0.7816 GB, free: 15.22 MB / 494.1 MB Notification: Performance of SimCode: time 1.082e-06/1.496, allocations: 0 / 0.7816 GB, free: 15.22 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4257/1.921, allocations: 71.45 MB / 0.8514 GB, free: 143.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000172/1.921, allocations: 211.5 kB / 0.8516 GB, free: 143.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.826/5.747, allocations: 4 kB / 0.8516 GB, free: 143.2 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat does not exist to compare? outputFormat=mat