Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUPS2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 169 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 221.5 MB / 230.7 MB, free: 7.555 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009872/0.000987, allocations: 92.28 kB / 281.6 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2182/0.2182, allocations: 44.14 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.946e-05/1.939e-05, allocations: 224 / 444.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1293, allocations: 61.91 MB / 0.4948 GB, free: 1.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.498/0.6273, allocations: 109.5 MB / 0.6017 GB, free: 2.836 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003118/0.6277, allocations: 75.95 kB / 0.6017 GB, free: 2.762 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5774/1.205, allocations: 98.58 MB / 0.698 GB, free: 109.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.304e-06/1.205, allocations: 0 / 0.698 GB, free: 109.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003335/1.206, allocations: 87.06 kB / 0.6981 GB, free: 109.6 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1695 * Number of variables: 1695 Notification: Performance of Generate backend data structure: time 0.02258/1.228, allocations: 5.111 MB / 0.7031 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.378e-05/1.228, allocations: 13.52 kB / 0.7031 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02338/1.252, allocations: 4.613 MB / 0.7076 GB, free: 108.5 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01911/1.271, allocations: 5.769 MB / 0.7132 GB, free: 108 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003859/1.271, allocations: 147.2 kB / 0.7134 GB, free: 108 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003405/1.275, allocations: 274.2 kB / 0.7136 GB, free: 108 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0157/1.29, allocations: 7.431 MB / 0.7209 GB, free: 108 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02221/1.313, allocations: 10.85 MB / 0.7315 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001874/1.313, allocations: 75.14 kB / 0.7316 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005897/1.313, allocations: 29.41 kB / 0.7316 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0015/1.315, allocations: 1.267 MB / 0.7328 GB, free: 105.1 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05835/1.373, allocations: 54.3 MB / 0.7859 GB, free: 67.67 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004693/1.378, allocations: 4.367 MB / 0.7901 GB, free: 65.45 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00318/1.381, allocations: 2.945 MB / 0.793 GB, free: 64.15 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01594/1.397, allocations: 12.13 MB / 0.8048 GB, free: 57.76 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.162e-05/1.397, allocations: 59 kB / 0.8049 GB, free: 57.7 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=193): time 4.969e-06/1.397, allocations: 0 / 0.8049 GB, free: 57.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=254): time 0.05821/1.456, allocations: 28.73 MB / 0.833 GB, free: 34.65 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.631e-05/1.456, allocations: 205.9 kB / 0.8332 GB, free: 34.41 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004618/1.46, allocations: 3.291 MB / 0.8364 GB, free: 31.5 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006301/1.461, allocations: 25.7 kB / 0.8364 GB, free: 31.46 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001833/1.463, allocations: 3.496 MB / 0.8398 GB, free: 28.29 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001207/1.464, allocations: 0.9228 MB / 0.8407 GB, free: 27.46 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003009/1.464, allocations: 0 / 0.8407 GB, free: 27.46 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003135/1.465, allocations: 0.6053 MB / 0.8413 GB, free: 26.93 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003348/1.468, allocations: 2.907 MB / 0.8441 GB, free: 24.32 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00462/1.473, allocations: 6.95 MB / 0.8509 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005796/1.478, allocations: 4.422 MB / 0.8552 GB, free: 11.99 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001335/1.479, allocations: 40 kB / 0.8553 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of matching and sorting (n=917) (initialization): time 0.02474/1.503, allocations: 11.64 MB / 0.8667 GB, free: 1.203 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.463e-05/1.503, allocations: 68.84 kB / 0.8667 GB, free: 1.137 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001187/1.504, allocations: 147.7 kB / 0.8669 GB, free: 0.9961 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00905/1.513, allocations: 3.172 MB / 0.87 GB, free: 13.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006324/1.519, allocations: 1.614 MB / 0.8715 GB, free: 12.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02194/1.541, allocations: 13.83 MB / 0.885 GB, free: 14.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006521/1.548, allocations: 347.2 kB / 0.8854 GB, free: 13.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001543/1.549, allocations: 428.7 kB / 0.8858 GB, free: 13.51 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 657 * Number of states: 0 () * Number of discrete variables: 36 (universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[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],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (839): * Single equations (assignments): 835 * 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 {(11,36.4%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001353/1.55, allocations: 478.1 kB / 0.8862 GB, free: 13.04 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01575/1.566, allocations: 7.212 MB / 0.8933 GB, free: 5.809 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001266/1.568, allocations: 371.2 kB / 0.8936 GB, free: 5.441 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.453/2.021, allocations: 7.146 MB / 0.9006 GB, free: 127 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001081/2.021, allocations: 27.38 kB / 0.9006 GB, free: 127 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.884e-05/2.021, allocations: 10.36 kB / 0.9006 GB, free: 127 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001048/2.021, allocations: 14.73 kB / 0.9007 GB, free: 127 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04891/2.07, allocations: 13.89 MB / 0.9142 GB, free: 126.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.528e-05/2.07, allocations: 0.9688 kB / 0.9142 GB, free: 126.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003317/2.073, allocations: 381.5 kB / 0.9146 GB, free: 126.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01309/2.086, allocations: 2.85 MB / 0.9174 GB, free: 126.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006476/2.087, allocations: 7.969 kB / 0.9174 GB, free: 126.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02535/2.112, allocations: 12.35 MB / 0.9294 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.585e-06/2.113, allocations: 9.672 kB / 0.9294 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0258/2.138, allocations: 11.09 MB / 0.9403 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001664/2.14, allocations: 405 kB / 0.9407 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001164/2.141, allocations: 0 / 0.9407 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003327/2.145, allocations: 171.2 kB / 0.9408 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000869/2.145, allocations: 151.1 kB / 0.941 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003242/2.146, allocations: 67.86 kB / 0.941 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004874/2.151, allocations: 2.189 MB / 0.9432 GB, free: 121.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.01e-07/2.151, allocations: 0 / 0.9432 GB, free: 121.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0108/2.162, allocations: 1.138 MB / 0.9443 GB, free: 121.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (189): * Single equations (assignments): 185 * 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 {(6,61.1%) 40} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02737/2.189, allocations: 11.89 MB / 0.9559 GB, free: 116.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01841/2.207, allocations: 7.453 MB / 0.9632 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/2.207, allocations: 0 / 0.9632 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005417/2.213, allocations: 2.959 MB / 0.9661 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002516/2.215, allocations: 381.1 kB / 0.9664 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02546/2.241, allocations: 11.05 MB / 0.9772 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004513/2.245, allocations: 3.773 MB / 0.9809 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006699/2.252, allocations: 2.212 MB / 0.9831 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005061/2.257, allocations: 2.201 MB / 0.9852 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of SimCode: time 1.543e-06/2.257, allocations: 0 / 0.9852 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1475/2.405, allocations: 94.39 MB / 1.077 GB, free: 19.14 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001734/2.405, allocations: 141.1 kB / 1.078 GB, free: 18.94 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.748/7.153, allocations: 0 / 1.078 GB, free: 18.94 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUPS2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUPS2_res.mat does not exist to compare? outputFormat=mat