Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001321/0.001321, allocations: 107.8 kB / 17.64 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001373/0.001374, allocations: 222.4 kB / 18.59 MB, free: 4.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2312/0.2312, allocations: 46.11 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00222/0.00222, allocations: 87.12 kB / 417.8 MB, free: 19.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1294, allocations: 62.45 MB / 480.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01419/0.1436, allocations: 11.92 MB / 492.1 MB, free: 9.125 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009064/0.1527, allocations: 4.086 MB / 496.2 MB, free: 5.027 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002024/0.1548, allocations: 75.88 kB / 496.3 MB, free: 4.953 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003973/0.1588, allocations: 1.658 MB / 498 MB, free: 3.289 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004751/0.1636, allocations: 1.525 MB / 499.5 MB, free: 1.758 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003259/0.1669, allocations: 1.169 MB / 0.4889 GB, free: 0.5859 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006006/0.1729, allocations: 3.501 MB / 0.4923 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004162/0.1771, allocations: 2.454 MB / 0.4947 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002325/0.1795, allocations: 1.156 MB / 0.4959 GB, free: 9.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002681/0.1822, allocations: 1.565 MB / 0.4974 GB, free: 7.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009977/0.1832, allocations: 236 kB / 0.4976 GB, free: 7.609 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002156/0.1854, allocations: 0.7061 MB / 0.4983 GB, free: 6.902 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002202/0.1876, allocations: 1.543 MB / 0.4998 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003314/0.1909, allocations: 1.863 MB / 0.5016 GB, free: 3.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2366/0.4276, allocations: 5.821 MB / 0.5073 GB, free: 18.64 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.4276, allocations: 2.781 kB / 0.5073 GB, free: 18.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.4276, allocations: 0 / 0.5073 GB, free: 18.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002772/0.4279, allocations: 0 / 0.5073 GB, free: 18.64 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: 1539 * Number of variables: 1539 Notification: Performance of Generate backend data structure: time 0.01021/0.4382, allocations: 3.976 MB / 0.5112 GB, free: 16.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.069e-05/0.4382, allocations: 11.78 kB / 0.5112 GB, free: 16.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001421/0.4397, allocations: 0.7129 MB / 0.5119 GB, free: 16.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0109/0.4506, allocations: 2.967 MB / 0.5148 GB, free: 16.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00491/0.4555, allocations: 1.795 MB / 0.5166 GB, free: 16.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001995/0.4557, allocations: 191.9 kB / 0.5167 GB, free: 16.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001064/0.4568, allocations: 249.5 kB / 0.517 GB, free: 16.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01675/0.4736, allocations: 10.04 MB / 0.5268 GB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.883e-05/0.4737, allocations: 30.66 kB / 0.5268 GB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004249/0.4741, allocations: 131.8 kB / 0.5269 GB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003538/0.4777, allocations: 2.31 MB / 0.5292 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01457/0.4923, allocations: 8.941 MB / 0.5379 GB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06047/0.5528, allocations: 37.7 MB / 0.5747 GB, free: 2.219 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006675/0.5595, allocations: 3.374 MB / 0.578 GB, free: 14.58 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002174/0.5617, allocations: 1.228 MB / 0.5792 GB, free: 13.34 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01063/0.5724, allocations: 5.179 MB / 0.5843 GB, free: 8.055 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.608e-05/0.5724, allocations: 46.59 kB / 0.5843 GB, free: 8.004 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 6.341e-06/0.5724, allocations: 4 kB / 0.5843 GB, free: 8 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.008378/0.5808, allocations: 3.324 MB / 0.5876 GB, free: 4.684 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.581, allocations: 174.2 kB / 0.5877 GB, free: 4.48 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01026/0.5913, allocations: 3.822 MB / 0.5915 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003627/0.5917, allocations: 41.7 kB / 0.5915 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003796/0.5955, allocations: 3.179 MB / 0.5946 GB, free: 13.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001246/0.5968, allocations: 0.6081 MB / 0.5952 GB, free: 12.85 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003876/0.6007, allocations: 1.299 MB / 0.5965 GB, free: 11.54 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.6009, allocations: 305.1 kB / 0.5968 GB, free: 11.24 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004001/0.6049, allocations: 1.953 MB / 0.5987 GB, free: 9.285 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008544/0.6135, allocations: 6.108 MB / 0.6047 GB, free: 1.176 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01165/0.6251, allocations: 8.793 MB / 0.6132 GB, free: 6.918 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001925/0.6254, allocations: 40 kB / 0.6133 GB, free: 6.879 MB / 462.1 MB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01765/0.643, allocations: 7.704 MB / 0.6208 GB, free: 15.43 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001974/0.6433, allocations: 71.94 kB / 0.6209 GB, free: 15.36 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003058/0.6436, allocations: 148.3 kB / 0.621 GB, free: 15.21 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003109/0.6439, allocations: 192 kB / 0.6212 GB, free: 15.03 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005491/0.6494, allocations: 1.462 MB / 0.6226 GB, free: 13.56 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003168/0.6498, allocations: 292.9 kB / 0.6229 GB, free: 13.28 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00638/0.6561, allocations: 0.9131 MB / 0.6238 GB, free: 12.36 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001477/0.6576, allocations: 400.2 kB / 0.6242 GB, free: 11.97 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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 (791): * Single equations (assignments): 783 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00487/0.6625, allocations: 2.201 MB / 0.6263 GB, free: 9.762 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007082/0.6633, allocations: 311.9 kB / 0.6266 GB, free: 9.453 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001115/0.6644, allocations: 407.1 kB / 0.627 GB, free: 9.051 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-05/0.6645, allocations: 40 kB / 0.627 GB, free: 9.012 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.6e-05/0.6645, allocations: 7.984 kB / 0.6271 GB, free: 9.004 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.387e-05/0.6645, allocations: 3.984 kB / 0.6271 GB, free: 9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01183/0.6763, allocations: 5.46 MB / 0.6324 GB, free: 3.441 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.263e-05/0.6764, allocations: 4 kB / 0.6324 GB, free: 3.438 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001037/0.6775, allocations: 207.7 kB / 0.6326 GB, free: 3.234 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.246e-05/0.6775, allocations: 11.98 kB / 0.6326 GB, free: 3.223 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001464/0.6776, allocations: 31.94 kB / 0.6326 GB, free: 3.191 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-05/0.6777, allocations: 11.94 kB / 0.6326 GB, free: 3.18 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.855e-06/0.6777, allocations: 9.969 kB / 0.6327 GB, free: 3.172 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003823/0.6815, allocations: 2.528 MB / 0.6351 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009332/0.6825, allocations: 372.7 kB / 0.6355 GB, free: 180 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006552/0.6831, allocations: 31.92 kB / 0.6355 GB, free: 148 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001379/0.6845, allocations: 67.92 kB / 0.6356 GB, free: 80 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000208/0.6847, allocations: 84.02 kB / 0.6357 GB, free: 0 / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.6849, allocations: 40.05 kB / 0.6357 GB, free: 15.96 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004166/0.689, allocations: 2.334 MB / 0.638 GB, free: 13.64 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6891, allocations: 4 kB / 0.638 GB, free: 13.64 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005597/0.6947, allocations: 1.062 MB / 0.639 GB, free: 12.57 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 0 () * 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 (108): * Single equations (assignments): 102 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004623/0.6993, allocations: 3.166 MB / 0.6421 GB, free: 9.309 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01/0.7093, allocations: 5.089 MB / 0.6471 GB, free: 4.262 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.409e-05/0.7094, allocations: 4 kB / 0.6471 GB, free: 4.258 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001545/0.7109, allocations: 0.954 MB / 0.648 GB, free: 3.309 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002952/0.7139, allocations: 357.4 kB / 0.6484 GB, free: 2.965 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09164/0.8056, allocations: 45.56 MB / 0.6928 GB, free: 13.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006681/0.8123, allocations: 3.154 MB / 0.6959 GB, free: 10.42 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00649/0.8188, allocations: 2.227 MB / 0.6981 GB, free: 8.184 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003942/0.8228, allocations: 1.667 MB / 0.6997 GB, free: 6.516 MB / 0.545 GB Notification: Performance of SimCode: time 1.763e-06/0.8229, allocations: 0 / 0.6997 GB, free: 6.516 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3178/1.141, allocations: 54.82 MB / 0.7533 GB, free: 170.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.572/10.71, allocations: 7.984 kB / 0.7533 GB, free: 170.5 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1)