Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001578/0.001585, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001815/0.001815, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2485/0.2485, allocations: 46.11 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002271/0.002271, allocations: 79.3 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1107, allocations: 62.45 MB / 480.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00322/0.1139, allocations: 1.922 MB / 482.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.1153, allocations: 0.561 MB / 482.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.1154, allocations: 7.938 kB / 482.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001425/0.1156, allocations: 19.8 kB / 482.7 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001326/0.1157, allocations: 47.61 kB / 482.8 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002727/0.116, allocations: 43.89 kB / 482.8 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002764/0.1163, allocations: 147.3 kB / 483 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002182/0.1165, allocations: 61.64 kB / 483 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00019/0.1167, allocations: 67.72 kB / 483.1 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001462/0.1169, allocations: 67.62 kB / 483.1 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.633e-05/0.1169, allocations: 12 kB / 483.2 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.395e-05/0.117, allocations: 16 kB / 483.2 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.866e-05/0.117, allocations: 27.92 kB / 483.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.1172, allocations: 67.67 kB / 483.3 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003016/0.1175, allocations: 159.7 kB / 483.4 MB, free: 1.906 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1175, allocations: 3.938 kB / 483.4 MB, free: 1.902 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1175, allocations: 0 / 483.4 MB, free: 1.902 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1175, allocations: 4 kB / 483.4 MB, free: 1.898 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.0007794/0.1183, allocations: 434.9 kB / 483.9 MB, free: 1.426 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.1184, allocations: 12.03 kB / 483.9 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.197e-05/0.1185, allocations: 46.73 kB / 483.9 MB, free: 1.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001903/0.1187, allocations: 24.83 kB / 483.9 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003113/0.119, allocations: 208 kB / 484.1 MB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.119, allocations: 12.38 kB / 484.1 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.087e-05/0.1191, allocations: 12.38 kB / 484.2 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003892/0.1195, allocations: 129.5 kB / 484.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.1195, allocations: 0 / 484.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.375e-05/0.1195, allocations: 8 kB / 484.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.1195, allocations: 4 kB / 484.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002802/0.1198, allocations: 79.95 kB / 484.4 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009799/0.1208, allocations: 472.1 kB / 484.8 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003097/0.1212, allocations: 126.5 kB / 485 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001686/0.1213, allocations: 56.83 kB / 485 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.1214, allocations: 0 / 485 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.765e-05/0.1214, allocations: 42.5 kB / 485.1 MB, free: 96 kB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.482e-06/0.1214, allocations: 0 / 485.1 MB, free: 96 kB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.002155/0.1236, allocations: 0.8029 MB / 485.9 MB, free: 15.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.648e-05/0.1237, allocations: 55.41 kB / 485.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.1239, allocations: 140.1 kB / 486.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.1239, allocations: 29.7 kB / 486.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.124, allocations: 116.3 kB / 486.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.764e-05/0.1241, allocations: 74.92 kB / 486.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.137e-05/0.1242, allocations: 37.7 kB / 486.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.1244, allocations: 326.8 kB / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.1246, allocations: 39.98 kB / 486.7 MB, free: 14.35 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.1248, allocations: 79.28 kB / 486.7 MB, free: 14.26 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003508/0.1251, allocations: 139.3 kB / 486.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1252, allocations: 3.938 kB / 486.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005795/0.1258, allocations: 198.2 kB / 487.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/0.1258, allocations: 14.59 kB / 487.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.1258, allocations: 3.938 kB / 487.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000222/0.126, allocations: 44.86 kB / 487.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002409/0.1263, allocations: 31.98 kB / 487.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002316/0.1286, allocations: 1.737 MB / 488.9 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.1288, allocations: 8.031 kB / 488.9 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.754e-05/0.1288, allocations: 4 kB / 488.9 MB, free: 11.93 MB / 366.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001839/0.129, allocations: 133.8 kB / 489 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.777e-05/0.129, allocations: 7.906 kB / 489.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.186e-05/0.1291, allocations: 25.11 kB / 489.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.1291, allocations: 7.938 kB / 489.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.1291, allocations: 0 / 489.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.1292, allocations: 0 / 489.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.1304, allocations: 0.5583 MB / 489.6 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.1304, allocations: 0 / 489.6 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002501/0.1306, allocations: 31.98 kB / 489.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000157/0.1308, allocations: 36.77 kB / 489.7 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.1308, allocations: 4 kB / 489.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001845/0.1327, allocations: 1.481 MB / 491.2 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.1327, allocations: 3.938 kB / 491.2 MB, free: 9.426 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007336/0.1335, allocations: 340.9 kB / 491.5 MB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.117e-05/0.1336, allocations: 92.95 kB / 491.6 MB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.941e-05/0.1336, allocations: 4.125 kB / 491.6 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.1338, allocations: 11.94 kB / 491.6 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.697e-05/0.1338, allocations: 19.91 kB / 491.7 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/0.1339, allocations: 8 kB / 491.7 MB, free: 8.918 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001267/0.134, allocations: 105.3 kB / 491.8 MB, free: 8.816 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.134, allocations: 0 / 491.8 MB, free: 8.816 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006032/0.1346, allocations: 40 kB / 491.8 MB, free: 8.777 MB / 366.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001209/0.1358, allocations: 0.8763 MB / 492.7 MB, free: 7.871 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007861/0.1366, allocations: 270.6 kB / 492.9 MB, free: 7.594 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1367, allocations: 0 / 492.9 MB, free: 7.594 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004058/0.1371, allocations: 194.5 kB / 493.1 MB, free: 7.391 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006212/0.1377, allocations: 16 kB / 493.2 MB, free: 7.375 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003824/0.1415, allocations: 2.054 MB / 495.2 MB, free: 5.203 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005473/0.1421, allocations: 0.7243 MB / 495.9 MB, free: 4.453 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.337e-05/0.1422, allocations: 13.42 kB / 495.9 MB, free: 4.438 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.675e-05/0.1423, allocations: 39.42 kB / 496 MB, free: 4.402 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1424, allocations: 0 / 496 MB, free: 4.402 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03253/0.1749, allocations: 3.391 MB / 499.4 MB, free: 1.168 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.984/10.16, allocations: 7.375 kB / 499.4 MB, free: 1.164 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1)