Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.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 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 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) 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.Forces.Torque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque",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.001462/0.001462, allocations: 93.09 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001715/0.001715, allocations: 188 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2223/0.2223, allocations: 44.23 MB / 337.1 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003419/0.0003421, allocations: 8 kB / 409.6 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.143, allocations: 61.92 MB / 471.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3863/0.5293, allocations: 76.42 MB / 0.5351 GB, free: 9.035 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04297/0.5724, allocations: 17.14 MB / 0.5519 GB, free: 14.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0215/0.5939, allocations: 384.5 kB / 0.5522 GB, free: 14.01 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0167/0.6107, allocations: 3.859 MB / 0.556 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03891/0.6496, allocations: 10.93 MB / 0.5667 GB, free: 2.172 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005658/0.6553, allocations: 0.8465 MB / 0.5675 GB, free: 1.324 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.06767/0.723, allocations: 48.99 MB / 0.6153 GB, free: 296 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01107/0.7341, allocations: 7.249 MB / 0.6224 GB, free: 8.953 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00292/0.7371, allocations: 1.549 MB / 0.6239 GB, free: 7.398 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003079/0.7402, allocations: 2.029 MB / 0.6259 GB, free: 5.363 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008577/0.741, allocations: 212 kB / 0.6261 GB, free: 5.156 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002129/0.7432, allocations: 0.9832 MB / 0.6271 GB, free: 4.172 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002208/0.7454, allocations: 2.466 MB / 0.6295 GB, free: 1.699 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001818/0.7472, allocations: 1.259 MB / 0.6307 GB, free: 440 kB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008886/0.7561, allocations: 8.294 MB / 0.6388 GB, free: 8.117 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.7562, allocations: 0 / 0.6388 GB, free: 8.117 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.7562, allocations: 3.938 kB / 0.6388 GB, free: 8.113 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0003812/0.7566, allocations: 0 / 0.6388 GB, free: 8.113 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.0158/0.7724, allocations: 6.661 MB / 0.6453 GB, free: 1.367 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.027e-05/0.7725, allocations: 8.031 kB / 0.6453 GB, free: 1.359 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003187/0.7757, allocations: 1.05 MB / 0.6463 GB, free: 304 kB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04273/0.8184, allocations: 8.202 MB / 0.6544 GB, free: 8.07 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01012/0.8286, allocations: 4.348 MB / 0.6586 GB, free: 3.645 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003372/0.8289, allocations: 365.3 kB / 0.6589 GB, free: 3.285 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001861/0.8308, allocations: 487.7 kB / 0.6594 GB, free: 2.809 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03026/0.8611, allocations: 14.67 MB / 0.6737 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002004/0.8613, allocations: 63.47 kB / 0.6738 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007984/0.8621, allocations: 227.8 kB / 0.674 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004738/0.8669, allocations: 2.824 MB / 0.6768 GB, free: 8 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02546/0.8923, allocations: 12.29 MB / 0.6888 GB, free: 3.684 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3463/1.239, allocations: 58.09 MB / 0.7455 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01529/1.254, allocations: 6.37 MB / 0.7517 GB, free: 151.1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01441/1.268, allocations: 8.388 MB / 0.7599 GB, free: 147 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/1.269, allocations: 64.19 kB / 0.76 GB, free: 146.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 4.349e-06/1.269, allocations: 3.906 kB / 0.76 GB, free: 146.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.06665/1.335, allocations: 29.99 MB / 0.7893 GB, free: 123.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.796e-05/1.335, allocations: 231.6 kB / 0.7895 GB, free: 123.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008059/1.343, allocations: 6.984 MB / 0.7963 GB, free: 116.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007569/1.344, allocations: 65.7 kB / 0.7964 GB, free: 116.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002228/1.346, allocations: 4.543 MB / 0.8008 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001141/1.348, allocations: 1.055 MB / 0.8018 GB, free: 110.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003408/1.348, allocations: 172 kB / 0.802 GB, free: 110.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002968/1.348, allocations: 0.6733 MB / 0.8027 GB, free: 109.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00388/1.352, allocations: 3.331 MB / 0.8059 GB, free: 106.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00555/1.358, allocations: 8.383 MB / 0.8141 GB, free: 95.66 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005808/1.363, allocations: 5.167 MB / 0.8192 GB, free: 90.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.18e-05/1.364, allocations: 52 kB / 0.8192 GB, free: 90.45 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1108) (initialization): time 0.01933/1.383, allocations: 13 MB / 0.8319 GB, free: 77.44 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.543e-05/1.383, allocations: 84.06 kB / 0.832 GB, free: 77.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001545/1.383, allocations: 180 kB / 0.8321 GB, free: 77.18 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003821/1.387, allocations: 1.804 MB / 0.8339 GB, free: 75.37 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006078/1.393, allocations: 1.954 MB / 0.8358 GB, free: 73.41 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01228/1.405, allocations: 12.32 MB / 0.8478 GB, free: 60.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008114/1.414, allocations: 0.4971 MB / 0.8483 GB, free: 60.34 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001756/1.415, allocations: 0.5038 MB / 0.8488 GB, free: 59.83 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 814 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (1026): * Single equations (assignments): 1019 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006271/1.422, allocations: 3.043 MB / 0.8518 GB, free: 56.78 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001498/1.423, allocations: 0.5746 MB / 0.8524 GB, free: 56.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009625/1.433, allocations: 6.319 MB / 0.8585 GB, free: 49.86 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.659e-05/1.433, allocations: 33.17 kB / 0.8586 GB, free: 49.83 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.201e-05/1.433, allocations: 8 kB / 0.8586 GB, free: 49.82 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.562e-05/1.433, allocations: 11.95 kB / 0.8586 GB, free: 49.81 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02444/1.457, allocations: 14.28 MB / 0.8725 GB, free: 35.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.109e-05/1.457, allocations: 4 kB / 0.8725 GB, free: 35.47 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002103/1.459, allocations: 459.7 kB / 0.873 GB, free: 35.02 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00349/1.463, allocations: 1.527 MB / 0.8745 GB, free: 33.49 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003582/1.463, allocations: 56.77 kB / 0.8745 GB, free: 33.43 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01215/1.476, allocations: 11.53 MB / 0.8858 GB, free: 21.65 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/1.476, allocations: 7.953 kB / 0.8858 GB, free: 21.64 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01334/1.489, allocations: 11.11 MB / 0.8966 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002034/1.491, allocations: 0.6575 MB / 0.8973 GB, free: 9.602 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001489/1.493, allocations: 52 kB / 0.8973 GB, free: 9.551 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00293/1.495, allocations: 183.7 kB / 0.8975 GB, free: 9.371 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00054/1.496, allocations: 167 kB / 0.8977 GB, free: 9.207 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002013/1.496, allocations: 83.94 kB / 0.8977 GB, free: 9.125 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008564/1.505, allocations: 4.495 MB / 0.9021 GB, free: 4.645 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.41e-07/1.505, allocations: 0 / 0.9021 GB, free: 4.645 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01328/1.518, allocations: 1.577 MB / 0.9037 GB, free: 3.074 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * 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 (220): * Single equations (assignments): 215 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3037/1.822, allocations: 12.5 MB / 0.9159 GB, free: 171.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01678/1.839, allocations: 8.231 MB / 0.9239 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.867e-06/1.839, allocations: 4.969 kB / 0.9239 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004774/1.844, allocations: 3.219 MB / 0.9271 GB, free: 167 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004003/1.848, allocations: 0.7022 MB / 0.9277 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06247/1.91, allocations: 156.3 MB / 1.08 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006828/1.917, allocations: 4.757 MB / 1.085 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007305/1.924, allocations: 2.804 MB / 1.088 GB, free: 9.039 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004806/1.929, allocations: 3.006 MB / 1.091 GB, free: 6.031 MB / 0.5294 GB Notification: Performance of SimCode: time 2.465e-06/1.929, allocations: 0 / 1.091 GB, free: 6.031 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4463/2.375, allocations: 125.3 MB / 1.213 GB, free: 104.9 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001658/2.376, allocations: 199.1 kB / 1.213 GB, free: 104.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.83/8.206, allocations: 0 / 1.213 GB, free: 104.7 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat