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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 96.28 kB / 15.69 MB, free: 480 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.001407/0.001407, allocations: 173.6 kB / 16.57 MB, free: 6.852 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.655/1.655, allocations: 205.4 MB / 222.7 MB, free: 5.66 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.3727/0.3727, allocations: 43.54 MB / 314.5 MB, free: 9.023 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.0005946/0.0005948, allocations: 16 kB / 384 MB, free: 8.172 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1447/0.1453, allocations: 58.86 MB / 442.8 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2761/0.4214, allocations: 35.53 MB / 478.4 MB, free: 29.72 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02013/0.4416, allocations: 8.808 MB / 487.2 MB, free: 23.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008411/0.4501, allocations: 174.4 kB / 487.4 MB, free: 23.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006523/0.4566, allocations: 1.741 MB / 489.1 MB, free: 23.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01715/0.4738, allocations: 5.204 MB / 494.3 MB, free: 20.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002437/0.4763, allocations: 497.1 kB / 494.8 MB, free: 20.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02277/0.4991, allocations: 13.67 MB / 0.4965 GB, free: 16.69 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005772/0.5049, allocations: 3.017 MB / 0.4995 GB, free: 15.53 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002153/0.5071, allocations: 0.89 MB / 0.5004 GB, free: 15.21 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002286/0.5094, allocations: 1.251 MB / 0.5016 GB, free: 14.83 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005862/0.51, allocations: 130.2 kB / 0.5017 GB, free: 14.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002046/0.5121, allocations: 0.8954 MB / 0.5026 GB, free: 14.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001737/0.5138, allocations: 1.403 MB / 0.504 GB, free: 14.22 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001254/0.5151, allocations: 0.7383 MB / 0.5047 GB, free: 13.69 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006588/0.5217, allocations: 5.029 MB / 0.5096 GB, free: 10.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.5217, allocations: 0 / 0.5096 GB, free: 10.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.5217, allocations: 0 / 0.5096 GB, free: 10.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.00018/0.5219, allocations: 0 / 0.5096 GB, free: 10.66 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01065/0.5326, allocations: 3.672 MB / 0.5132 GB, free: 8.012 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/0.5326, allocations: 8.031 kB / 0.5132 GB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00164/0.5343, allocations: 0.6377 MB / 0.5138 GB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08265/0.6169, allocations: 8.32 MB / 0.5219 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007369/0.6244, allocations: 2.57 MB / 0.5244 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001767/0.6246, allocations: 196.9 kB / 0.5246 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006949/0.6253, allocations: 259.8 kB / 0.5249 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0146/0.6399, allocations: 8.722 MB / 0.5334 GB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001078/0.6401, allocations: 39.59 kB / 0.5334 GB, free: 2.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000377/0.6404, allocations: 127.9 kB / 0.5335 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003067/0.6435, allocations: 1.829 MB / 0.5353 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01392/0.6574, allocations: 7.362 MB / 0.5425 GB, free: 9.199 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04983/0.7073, allocations: 34.07 MB / 0.5758 GB, free: 6.125 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005526/0.7129, allocations: 2.534 MB / 0.5783 GB, free: 3.445 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004069/0.7134, allocations: 327.7 kB / 0.5786 GB, free: 3.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.948e-05/0.7134, allocations: 51.06 kB / 0.5786 GB, free: 3.012 MB / 446.1 MB Notification: Performance of pre-optimization done (n=119): time 4.188e-06/0.7135, allocations: 3.938 kB / 0.5786 GB, free: 3.008 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.02409/0.7376, allocations: 9.198 MB / 0.5876 GB, free: 9.652 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000137/0.7377, allocations: 192.6 kB / 0.5878 GB, free: 9.422 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006286/0.744, allocations: 4.079 MB / 0.5918 GB, free: 5.359 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002802/0.7443, allocations: 45.7 kB / 0.5918 GB, free: 5.309 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002434/0.7468, allocations: 2.964 MB / 0.5947 GB, free: 2.301 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007549/0.7475, allocations: 0.5442 MB / 0.5953 GB, free: 1.75 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002567/0.7478, allocations: 112 kB / 0.5954 GB, free: 1.641 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000372/0.7482, allocations: 0.5537 MB / 0.5959 GB, free: 1.078 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002874/0.7511, allocations: 1.67 MB / 0.5975 GB, free: 15.4 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005947/0.757, allocations: 5.47 MB / 0.6029 GB, free: 8.004 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004589/0.7617, allocations: 2.974 MB / 0.6058 GB, free: 5.031 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.783e-05/0.7618, allocations: 40 kB / 0.6058 GB, free: 4.992 MB / 478.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01273/0.7745, allocations: 7.045 MB / 0.6127 GB, free: 13.94 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.709e-05/0.7746, allocations: 64 kB / 0.6128 GB, free: 13.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001601/0.7748, allocations: 136 kB / 0.6129 GB, free: 13.74 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009421/0.7757, allocations: 433.3 kB / 0.6133 GB, free: 13.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004235/0.78, allocations: 1.326 MB / 0.6146 GB, free: 11.99 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004016/0.784, allocations: 3.177 MB / 0.6177 GB, free: 8.684 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005182/0.7892, allocations: 307.4 kB / 0.618 GB, free: 8.383 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008329/0.7901, allocations: 372 kB / 0.6183 GB, free: 8.02 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * 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 (716): * Single equations (assignments): 712 * 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.004018/0.7941, allocations: 1.935 MB / 0.6202 GB, free: 6.07 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007584/0.7949, allocations: 327.7 kB / 0.6205 GB, free: 5.746 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003284/0.7982, allocations: 1.706 MB / 0.6222 GB, free: 4.023 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.04e-05/0.7982, allocations: 16 kB / 0.6222 GB, free: 4.008 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.7982, allocations: 7.953 kB / 0.6222 GB, free: 4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.7983, allocations: 3.984 kB / 0.6222 GB, free: 3.996 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/0.8095, allocations: 5.441 MB / 0.6276 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.448e-05/0.8096, allocations: 3.938 kB / 0.6276 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009653/0.8105, allocations: 187.9 kB / 0.6277 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006741/0.8112, allocations: 225.2 kB / 0.628 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.178e-05/0.8113, allocations: 35.91 kB / 0.628 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003156/0.8145, allocations: 2.577 MB / 0.6305 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.227e-06/0.8145, allocations: 0 / 0.6305 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00579/0.8203, allocations: 3.723 MB / 0.6341 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00196/0.8223, allocations: 0.5396 MB / 0.6347 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005637/0.8229, allocations: 20 kB / 0.6347 GB, free: 6.938 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/0.824, allocations: 64 kB / 0.6347 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001924/0.8242, allocations: 64.47 kB / 0.6348 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-05/0.8243, allocations: 51.92 kB / 0.6349 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004753/0.8291, allocations: 2.559 MB / 0.6374 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.194e-06/0.8291, allocations: 4 kB / 0.6374 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006575/0.8357, allocations: 0.871 MB / 0.6382 GB, free: 3.348 MB / 0.4981 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.3104/1.146, allocations: 4.803 MB / 0.6429 GB, free: 149.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007077/1.153, allocations: 4.065 MB / 0.6469 GB, free: 149.3 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/1.153, allocations: 6.969 kB / 0.6469 GB, free: 149.3 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001405/1.155, allocations: 0.9991 MB / 0.6479 GB, free: 149.2 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002408/1.157, allocations: 364.5 kB / 0.6482 GB, free: 149.1 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08351/1.241, allocations: 123.2 MB / 0.7685 GB, free: 36.85 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003881/1.245, allocations: 3.029 MB / 0.7715 GB, free: 35.63 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005952/1.251, allocations: 1.806 MB / 0.7733 GB, free: 35.47 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002775/1.253, allocations: 1.651 MB / 0.7749 GB, free: 34.14 MB / 0.4981 GB Notification: Performance of SimCode: time 1.292e-06/1.253, allocations: 0 / 0.7749 GB, free: 34.14 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3589/1.612, allocations: 67.14 MB / 0.8404 GB, free: 143.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001475/1.613, allocations: 196.2 kB / 0.8406 GB, free: 143.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.133/5.746, allocations: 0 / 0.8406 GB, free: 143.3 MB / 0.4981 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) Environment - environmentSimulation: 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