Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.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.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",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.001211/0.001211, allocations: 183.6 kB / 15.76 MB, free: 6.367 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.599/1.599, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0009025/0.0009026, allocations: 94.84 kB / 270.2 MB, free: 13.36 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.2229/0.2229, allocations: 43.56 MB / 362.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003207/0.0003207, allocations: 12 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1373, allocations: 58.85 MB / 490.3 MB, free: 8.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4585/0.5959, allocations: 104.6 MB / 0.581 GB, free: 11.4 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002851/0.5963, allocations: 81.33 kB / 0.5811 GB, free: 11.36 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2058/0.8021, allocations: 79.21 MB / 0.6584 GB, free: 4.004 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.8021, allocations: 0 / 0.6584 GB, free: 4.004 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001855/0.8023, allocations: 68 kB / 0.6585 GB, free: 3.938 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01321/0.8156, allocations: 3.787 MB / 0.6622 GB, free: 88 kB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.938e-05/0.8156, allocations: 12.02 kB / 0.6622 GB, free: 76 kB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003024/0.8187, allocations: 0.6923 MB / 0.6629 GB, free: 15.37 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01768/0.8364, allocations: 4.328 MB / 0.6671 GB, free: 11.03 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01372/0.8501, allocations: 4.412 MB / 0.6714 GB, free: 6.555 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003869/0.8506, allocations: 279.3 kB / 0.6717 GB, free: 6.281 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002542/0.8531, allocations: 367.8 kB / 0.672 GB, free: 5.922 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02095/0.8741, allocations: 9.129 MB / 0.6809 GB, free: 11.81 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002167/0.8744, allocations: 55.56 kB / 0.681 GB, free: 11.75 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001138/0.8755, allocations: 183.8 kB / 0.6812 GB, free: 11.57 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001449/0.877, allocations: 0.9001 MB / 0.682 GB, free: 10.67 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01627/0.8933, allocations: 7.408 MB / 0.6893 GB, free: 3.258 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3441/1.237, allocations: 42.76 MB / 0.731 GB, free: 94.86 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005673/1.243, allocations: 2.527 MB / 0.7335 GB, free: 94.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004201/1.244, allocations: 323.2 kB / 0.7338 GB, free: 93.92 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/1.244, allocations: 50.62 kB / 0.7338 GB, free: 93.88 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=119): time 4.409e-06/1.244, allocations: 0 / 0.7338 GB, free: 93.88 MB / 0.4948 GB Notification: Performance of matching and sorting (n=133): time 0.02525/1.269, allocations: 8.913 MB / 0.7425 GB, free: 91.11 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.475e-05/1.269, allocations: 193 kB / 0.7427 GB, free: 90.89 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006504/1.276, allocations: 3.513 MB / 0.7462 GB, free: 90.57 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003864/1.276, allocations: 42.64 kB / 0.7462 GB, free: 90.54 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002648/1.279, allocations: 2.986 MB / 0.7491 GB, free: 89.13 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008826/1.28, allocations: 0.5385 MB / 0.7496 GB, free: 88.84 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002227/1.28, allocations: 115.1 kB / 0.7498 GB, free: 88.84 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.00034/1.28, allocations: 0.5559 MB / 0.7503 GB, free: 88.53 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002413/1.283, allocations: 1.635 MB / 0.7519 GB, free: 88.51 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00425/1.287, allocations: 5.449 MB / 0.7572 GB, free: 83.54 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00362/1.291, allocations: 2.949 MB / 0.7601 GB, free: 83.53 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.618e-05/1.291, allocations: 38.34 kB / 0.7601 GB, free: 83.53 MB / 0.4948 GB Notification: Performance of matching and sorting (n=753) (initialization): time 0.01123/1.302, allocations: 6.952 MB / 0.7669 GB, free: 82.9 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.799e-05/1.302, allocations: 63.59 kB / 0.767 GB, free: 82.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001648/1.302, allocations: 136.7 kB / 0.7671 GB, free: 82.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007316/1.303, allocations: 372.5 kB / 0.7675 GB, free: 82.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003659/1.307, allocations: 1.329 MB / 0.7688 GB, free: 82.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002733/1.309, allocations: 2.782 MB / 0.7715 GB, free: 81.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004656/1.314, allocations: 308.6 kB / 0.7718 GB, free: 81.33 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008266/1.315, allocations: 370.5 kB / 0.7721 GB, free: 81.29 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (718): * Single equations (assignments): 714 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003681/1.319, allocations: 1.937 MB / 0.774 GB, free: 80.36 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008933/1.319, allocations: 329.1 kB / 0.7743 GB, free: 80.18 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003135/1.323, allocations: 1.582 MB / 0.7759 GB, free: 79.54 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.197e-05/1.323, allocations: 19.47 kB / 0.7759 GB, free: 79.54 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-05/1.323, allocations: 7.828 kB / 0.7759 GB, free: 79.54 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.42e-05/1.323, allocations: 7.219 kB / 0.7759 GB, free: 79.54 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01261/1.335, allocations: 5.248 MB / 0.781 GB, free: 77.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.852e-05/1.335, allocations: 7.5 kB / 0.781 GB, free: 77.51 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/1.336, allocations: 189.4 kB / 0.7812 GB, free: 77.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005318/1.337, allocations: 163.8 kB / 0.7814 GB, free: 77.45 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001486/1.337, allocations: 26.84 kB / 0.7814 GB, free: 77.44 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002138/1.339, allocations: 2.198 MB / 0.7836 GB, free: 75.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/1.339, allocations: 0 / 0.7836 GB, free: 75.77 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004917/1.344, allocations: 3.583 MB / 0.7871 GB, free: 73.97 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001822/1.346, allocations: 0.5228 MB / 0.7876 GB, free: 73.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008972/1.347, allocations: 19.19 kB / 0.7876 GB, free: 73.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001396/1.348, allocations: 60.34 kB / 0.7876 GB, free: 73.59 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001745/1.349, allocations: 80.17 kB / 0.7877 GB, free: 73.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.218e-05/1.349, allocations: 38.41 kB / 0.7878 GB, free: 73.57 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003634/1.352, allocations: 2.45 MB / 0.7901 GB, free: 72.75 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.7e-07/1.352, allocations: 0 / 0.7901 GB, free: 72.75 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005793/1.358, allocations: 0.8473 MB / 0.791 GB, free: 72.64 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005543/1.364, allocations: 4.653 MB / 0.7955 GB, free: 69.88 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006722/1.37, allocations: 3.992 MB / 0.7994 GB, free: 68.46 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.886e-06/1.37, allocations: 0 / 0.7994 GB, free: 68.46 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001322/1.372, allocations: 0.9718 MB / 0.8004 GB, free: 68.05 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002508/1.374, allocations: 371.3 kB / 0.8007 GB, free: 67.88 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3407/1.715, allocations: 123 MB / 0.9208 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004292/1.719, allocations: 3.034 MB / 0.9238 GB, free: 135 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004889/1.724, allocations: 1.808 MB / 0.9255 GB, free: 134.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002228/1.727, allocations: 1.64 MB / 0.9271 GB, free: 134.9 MB / 0.5261 GB Notification: Performance of SimCode: time 1.473e-06/1.727, allocations: 0 / 0.9271 GB, free: 134.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1098/1.836, allocations: 66.01 MB / 0.9916 GB, free: 107.3 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001589/1.837, allocations: 185.5 kB / 0.9918 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.282/6.119, allocations: 0 / 0.9918 GB, free: 107.1 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat