Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",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.0008242/0.0008242, allocations: 98.33 kB / 17 MB, free: 5.953 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.0009719/0.000972, allocations: 186.8 kB / 17.89 MB, free: 5.57 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.394/1.394, allocations: 223.2 MB / 241.9 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.229/0.229, allocations: 44.23 MB / 337.2 MB, free: 2.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003107/0.0003107, allocations: 8 kB / 409.7 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1133, allocations: 61.91 MB / 471.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002511/0.1158, allocations: 1.878 MB / 473.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.117, allocations: 0.6938 MB / 474.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.1172, allocations: 4 kB / 474.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001586/0.1173, allocations: 23.78 kB / 474.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001076/0.1174, allocations: 59.53 kB / 474.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003512/0.1178, allocations: 107.8 kB / 474.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003125/0.1181, allocations: 291.4 kB / 474.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001648/0.1183, allocations: 64.77 kB / 474.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001853/0.1185, allocations: 123.5 kB / 474.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001972/0.1187, allocations: 135.5 kB / 475 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.245e-05/0.1187, allocations: 12 kB / 475 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.1189, allocations: 63.89 kB / 475.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.148e-05/0.119, allocations: 47.81 kB / 475.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.816e-05/0.119, allocations: 65.58 kB / 475.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000268/0.1193, allocations: 243.6 kB / 475.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.1193, allocations: 0 / 475.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1193, allocations: 0 / 475.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.1193, allocations: 0 / 475.4 MB, free: 9.848 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0008137/0.1201, allocations: 0.5224 MB / 475.9 MB, free: 9.273 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.1202, allocations: 8.031 kB / 476 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.51e-05/0.1203, allocations: 66.47 kB / 476 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.241e-05/0.1203, allocations: 27.62 kB / 476 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000266/0.1206, allocations: 238.7 kB / 476.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.997e-05/0.1206, allocations: 16.44 kB / 476.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.816e-05/0.1207, allocations: 23.95 kB / 476.3 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004836/0.1212, allocations: 267.2 kB / 476.6 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.1212, allocations: 4 kB / 476.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.531e-05/0.1212, allocations: 8 kB / 476.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.1213, allocations: 8 kB / 476.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004661/0.1217, allocations: 237.5 kB / 476.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.123, allocations: 0.7402 MB / 477.6 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004897/0.1235, allocations: 250.4 kB / 477.8 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002481/0.1237, allocations: 148.8 kB / 478 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.1238, allocations: 448 / 478 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.1238, allocations: 38.56 kB / 478 MB, free: 7.094 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.042e-06/0.1238, allocations: 0 / 478 MB, free: 7.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.00292/0.1267, allocations: 1.505 MB / 479.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.582e-05/0.1268, allocations: 59.41 kB / 479.6 MB, free: 5.406 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/0.127, allocations: 198.5 kB / 479.8 MB, free: 5.199 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.277e-05/0.127, allocations: 33.7 kB / 479.8 MB, free: 5.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.354e-05/0.1271, allocations: 132.7 kB / 479.9 MB, free: 5.027 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.558e-05/0.1272, allocations: 118.4 kB / 480 MB, free: 4.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.103e-05/0.1272, allocations: 8 kB / 480 MB, free: 4.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.1274, allocations: 326.8 kB / 480.4 MB, free: 4.574 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002332/0.1276, allocations: 127.9 kB / 480.5 MB, free: 4.449 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002775/0.1279, allocations: 172.2 kB / 480.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002253/0.1281, allocations: 111.9 kB / 480.8 MB, free: 4.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.1281, allocations: 0 / 480.8 MB, free: 4.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008288/0.129, allocations: 453.8 kB / 481.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.129, allocations: 8 kB / 481.2 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.129, allocations: 0 / 481.2 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005193/0.1295, allocations: 239.5 kB / 481.4 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002253/0.1298, allocations: 63.86 kB / 481.5 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007473/0.1305, allocations: 0.7436 MB / 482.3 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002379/0.1308, allocations: 52.05 kB / 482.3 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.979e-05/0.1308, allocations: 12 kB / 482.3 MB, free: 2.57 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * 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: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001589/0.131, allocations: 146.8 kB / 482.5 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.452e-05/0.1311, allocations: 23.67 kB / 482.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.008e-05/0.1311, allocations: 34.64 kB / 482.5 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.1312, allocations: 4 kB / 482.5 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.1312, allocations: 8 kB / 482.5 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.1312, allocations: 0 / 482.5 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00154/0.1327, allocations: 0.9715 MB / 483.5 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1327, allocations: 0 / 483.5 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000212/0.133, allocations: 51.91 kB / 483.5 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003876/0.1334, allocations: 212.7 kB / 483.8 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.679e-05/0.1334, allocations: 12 kB / 483.8 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006475/0.134, allocations: 0.7123 MB / 484.5 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.1341, allocations: 7.969 kB / 484.5 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.1351, allocations: 0.6374 MB / 485.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/0.1353, allocations: 128.9 kB / 485.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.867e-05/0.1353, allocations: 8 kB / 485.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002487/0.1356, allocations: 48.03 kB / 485.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.1357, allocations: 59.92 kB / 485.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.216e-05/0.1358, allocations: 11.94 kB / 485.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001394/0.1359, allocations: 147 kB / 485.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1359, allocations: 0 / 485.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000355/0.1363, allocations: 75.98 kB / 485.6 MB, free: 15.14 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * 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: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001494/0.1378, allocations: 1.214 MB / 486.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000665/0.1384, allocations: 311.8 kB / 487.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1385, allocations: 0 / 487.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003218/0.1388, allocations: 155.9 kB / 487.3 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003706/0.1392, allocations: 38.53 kB / 487.3 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003495/0.1427, allocations: 1.968 MB / 489.3 MB, free: 11.37 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.143, allocations: 0.7486 MB / 490 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.794e-05/0.1431, allocations: 22.28 kB / 490 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.1432, allocations: 67.41 kB / 490.1 MB, free: 10.51 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1433, allocations: 0 / 490.1 MB, free: 10.51 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01866/0.1619, allocations: 6.821 MB / 496.9 MB, free: 3.871 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001539/0.1621, allocations: 226.2 kB / 497.1 MB, free: 3.629 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.976/2.139, allocations: 0 / 497.1 MB, free: 3.629 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat does not exist to compare? outputFormat=mat