Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",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.0008117/0.0008117, allocations: 95.86 kB / 17 MB, free: 6.383 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.0007875/0.0007875, allocations: 181 kB / 17.88 MB, free: 5.922 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.347/1.347, allocations: 223.3 MB / 241.9 MB, free: 352 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.2241/0.2241, allocations: 44.23 MB / 337.2 MB, free: 2.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003256/0.0003258, allocations: 8 kB / 409.7 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1166, allocations: 61.92 MB / 471.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002048/0.1187, allocations: 1.57 MB / 473.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007701/0.1195, allocations: 471.2 kB / 473.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.623e-05/0.1196, allocations: 7.938 kB / 473.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.1197, allocations: 15.91 kB / 473.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.354e-05/0.1198, allocations: 39.7 kB / 473.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002054/0.12, allocations: 23.97 kB / 473.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001992/0.1202, allocations: 135.3 kB / 473.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.1204, allocations: 41.8 kB / 473.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001126/0.1205, allocations: 47.78 kB / 474 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001346/0.1207, allocations: 59.77 kB / 474 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.347e-05/0.1207, allocations: 11.94 kB / 474.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.633e-05/0.1208, allocations: 4 kB / 474.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.994e-05/0.1208, allocations: 19.92 kB / 474.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.633e-05/0.1209, allocations: 49.64 kB / 474.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.121, allocations: 115.9 kB / 474.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.121, allocations: 0 / 474.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.1211, allocations: 0 / 474.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.1211, allocations: 0 / 474.2 MB, free: 11.04 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006341/0.1217, allocations: 410.9 kB / 474.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.368e-05/0.1218, allocations: 12.03 kB / 474.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.855e-05/0.1218, allocations: 46.55 kB / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.207e-05/0.1219, allocations: 15.81 kB / 474.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002201/0.1221, allocations: 194.9 kB / 474.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.1221, allocations: 12 kB / 474.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.384e-05/0.1222, allocations: 19.86 kB / 474.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002756/0.1225, allocations: 134.1 kB / 475.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.1225, allocations: 4 kB / 475.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.1225, allocations: 7.984 kB / 475.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.908e-06/0.1225, allocations: 4 kB / 475.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001855/0.1227, allocations: 83.95 kB / 475.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000716/0.1234, allocations: 480.2 kB / 475.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002113/0.1237, allocations: 122.4 kB / 475.7 MB, free: 9.363 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.1238, allocations: 64.78 kB / 475.8 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.811e-05/0.1238, allocations: 0 / 475.8 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.412e-05/0.1238, allocations: 38.56 kB / 475.9 MB, free: 9.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.034e-06/0.1238, allocations: 0 / 475.9 MB, free: 9.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001455/0.1253, allocations: 0.8196 MB / 476.7 MB, free: 8.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.724e-05/0.1254, allocations: 55.41 kB / 476.7 MB, free: 8.273 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.1255, allocations: 137.1 kB / 476.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.1255, allocations: 33.7 kB / 476.9 MB, free: 8.094 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.96e-05/0.1256, allocations: 116.3 kB / 477 MB, free: 7.977 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.767e-05/0.1256, allocations: 63.02 kB / 477.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-06/0.1256, allocations: 0 / 477.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.1258, allocations: 326.8 kB / 477.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.859e-05/0.1259, allocations: 44.34 kB / 477.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.126, allocations: 76.16 kB / 477.5 MB, free: 7.457 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001083/0.1261, allocations: 59.98 kB / 477.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-06/0.1261, allocations: 0 / 477.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000355/0.1265, allocations: 206.2 kB / 477.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.1265, allocations: 8 kB / 477.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1265, allocations: 4 kB / 477.8 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001587/0.1267, allocations: 44.77 kB / 477.8 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.1268, allocations: 31.98 kB / 477.8 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001285/0.1281, allocations: 1.565 MB / 479.4 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.244e-05/0.1282, allocations: 8.031 kB / 479.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.57e-05/0.1282, allocations: 11.98 kB / 479.4 MB, free: 5.383 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001096/0.1284, allocations: 129.8 kB / 479.6 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.532e-05/0.1284, allocations: 15.81 kB / 479.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.877e-05/0.1284, allocations: 17.19 kB / 479.6 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1285, allocations: 4 kB / 479.6 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.1285, allocations: 3.953 kB / 479.6 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.1285, allocations: 0 / 479.6 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000725/0.1292, allocations: 0.5507 MB / 480.2 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1292, allocations: 0 / 480.2 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.1294, allocations: 35.97 kB / 480.2 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.297e-05/0.1295, allocations: 32.88 kB / 480.2 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.1295, allocations: 4 kB / 480.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009669/0.1305, allocations: 1.378 MB / 481.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1305, allocations: 0 / 481.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004381/0.1309, allocations: 351.7 kB / 481.9 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.327e-05/0.131, allocations: 93.16 kB / 482 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.131, allocations: 4 kB / 482 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.597e-05/0.1311, allocations: 7.938 kB / 482 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.851e-05/0.1312, allocations: 27.86 kB / 482.1 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-06/0.1312, allocations: 4 kB / 482.1 MB, free: 2.492 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.114e-05/0.1312, allocations: 106 kB / 482.2 MB, free: 2.391 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1312, allocations: 0 / 482.2 MB, free: 2.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003235/0.1316, allocations: 44 kB / 482.2 MB, free: 2.348 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.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 (16): * Single equations (assignments): 15 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006949/0.1323, allocations: 0.8823 MB / 483.1 MB, free: 1.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004472/0.1327, allocations: 262.4 kB / 483.4 MB, free: 1.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1327, allocations: 0 / 483.4 MB, free: 1.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002353/0.133, allocations: 194.7 kB / 483.6 MB, free: 0.957 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003551/0.1334, allocations: 23.98 kB / 483.6 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.1349, allocations: 1.084 MB / 484.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.1352, allocations: 0.7285 MB / 485.4 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.148e-05/0.1352, allocations: 9.422 kB / 485.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.779e-05/0.1353, allocations: 39.42 kB / 485.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of SimCode: time 1.472e-06/0.1353, allocations: 112 / 485.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01446/0.1498, allocations: 3.03 MB / 488.5 MB, free: 12.13 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002185/0.1501, allocations: 214 kB / 488.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.017/2.167, allocations: 0 / 488.7 MB, free: 11.89 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat