Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.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/Credibility 0.1.0-main/package.mo", uses=false) Using package Credibility with version 0.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/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: translateModel(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU") translateModel(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001198/0.001206, allocations: 104.3 kB / 16.4 MB, free: 6.457 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.001319/0.001319, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.305/1.305, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/package.mo): time 0.00799/0.00799, allocations: 1.293 MB / 292.5 MB, free: 13.48 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 63.84 kB / 404.1 MB, free: 31.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09238/0.09359, allocations: 49.72 MB / 453.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU): time 0.004606/0.09824, allocations: 3.227 MB / 457 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00331/0.1016, allocations: 2.219 MB / 459.3 MB, free: 8.078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002158/0.1018, allocations: 11.94 kB / 459.3 MB, free: 8.066 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001946/0.1038, allocations: 1.055 MB / 460.3 MB, free: 7.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005121/0.1043, allocations: 346.3 kB / 460.7 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003223/0.1047, allocations: 139.6 kB / 460.8 MB, free: 6.535 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005679/0.1052, allocations: 0.5332 MB / 461.3 MB, free: 6 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000222/0.1055, allocations: 132 kB / 461.5 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000227/0.1057, allocations: 243 kB / 461.7 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003395/0.1061, allocations: 335.2 kB / 462 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.23e-05/0.1061, allocations: 32 kB / 462.1 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001788/0.1063, allocations: 87.95 kB / 462.1 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002182/0.1065, allocations: 272.7 kB / 462.4 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002627/0.1068, allocations: 357.6 kB / 462.8 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001032/0.1078, allocations: 0.8914 MB / 463.7 MB, free: 3.668 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.1079, allocations: 0 / 463.7 MB, free: 3.668 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1079, allocations: 0 / 463.7 MB, free: 3.668 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.1079, allocations: 0 / 463.7 MB, free: 3.668 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001493/0.1094, allocations: 1.166 MB / 464.8 MB, free: 2.445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.1094, allocations: 12.03 kB / 464.8 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.1095, allocations: 99.09 kB / 464.9 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.1106, allocations: 0.9055 MB / 465.8 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.668e-05/0.1106, allocations: 20.56 kB / 465.9 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.908e-05/0.1107, allocations: 31.84 kB / 465.9 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003356/0.111, allocations: 231.6 kB / 466.1 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.1111, allocations: 0 / 466.1 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.112e-05/0.1111, allocations: 8 kB / 466.1 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.1111, allocations: 15.94 kB / 466.1 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002394/0.1114, allocations: 142.2 kB / 466.3 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001604/0.113, allocations: 1.325 MB / 467.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003853/0.1134, allocations: 267.9 kB / 467.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001763/0.1136, allocations: 96.75 kB / 468 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.846e-05/0.1136, allocations: 0 / 468 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.1136, allocations: 38.94 kB / 468 MB, free: 15.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.032e-06/0.1136, allocations: 0 / 468 MB, free: 15.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001552/0.1152, allocations: 1.036 MB / 469 MB, free: 13.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/0.1152, allocations: 59.34 kB / 469.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001737/0.117, allocations: 1.744 MB / 470.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.117, allocations: 33.64 kB / 470.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002723/0.1173, allocations: 368.9 kB / 471.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.447e-05/0.1174, allocations: 98.73 kB / 471.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000271/0.1177, allocations: 250.2 kB / 471.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.1178, allocations: 349.9 kB / 471.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005191/0.1183, allocations: 461.8 kB / 472.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005876/0.1189, allocations: 0.5429 MB / 472.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007431/0.1197, allocations: 0.6552 MB / 473.6 MB, free: 9.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.1197, allocations: 0 / 473.6 MB, free: 9.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001652/0.1213, allocations: 1.283 MB / 474.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.1214, allocations: 10.5 kB / 474.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1214, allocations: 0 / 474.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003156/0.1217, allocations: 81.59 kB / 474.9 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004806/0.1222, allocations: 175.8 kB / 475.1 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001712/0.1239, allocations: 2.289 MB / 477.4 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002876/0.1242, allocations: 24 kB / 477.4 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.942e-05/0.1243, allocations: 31.98 kB / 477.4 MB, free: 5.27 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (115): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004048/0.1247, allocations: 385.7 kB / 477.8 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.1248, allocations: 90.78 kB / 477.9 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000372/0.1252, allocations: 250.3 kB / 478.2 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.1252, allocations: 7.875 kB / 478.2 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.1252, allocations: 0 / 478.2 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.1252, allocations: 3.984 kB / 478.2 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001202/0.1264, allocations: 0.9841 MB / 479.1 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1264, allocations: 0 / 479.1 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002396/0.1267, allocations: 63.94 kB / 479.2 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1267, allocations: 0 / 479.2 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.1267, allocations: 7.938 kB / 479.2 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.1267, allocations: 3.984 kB / 479.2 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.1267, allocations: 4 kB / 479.2 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004519/0.1272, allocations: 436.3 kB / 479.7 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002897/0.1275, allocations: 227.9 kB / 479.9 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.993e-05/0.1275, allocations: 7.938 kB / 479.9 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.1277, allocations: 4 kB / 479.9 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.411e-05/0.1278, allocations: 19.97 kB / 479.9 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.1278, allocations: 8.062 kB / 479.9 MB, free: 2.664 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001201/0.129, allocations: 1.135 MB / 481 MB, free: 1.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.129, allocations: 0 / 481 MB, free: 1.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005204/0.1295, allocations: 164 kB / 481.2 MB, free: 1.359 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (damper.phi_rel,damper.w_rel,inertiaLoad.w,loadTorque.phi) * 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 (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008248/0.1304, allocations: 383.5 kB / 481.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001112/0.1315, allocations: 0.8206 MB / 482.4 MB, free: 288 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.1315, allocations: 0 / 482.4 MB, free: 288 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001151/0.1316, allocations: 86.7 kB / 482.5 MB, free: 204 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006972/0.1323, allocations: 105.6 kB / 482.6 MB, free: 100 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002373/0.1347, allocations: 1.814 MB / 484.4 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005965/0.1353, allocations: 1.027 MB / 485.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.1354, allocations: 39.44 kB / 485.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1354, allocations: 0 / 485.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of Templates: time 0.01648/0.1519, allocations: 12.7 MB / 498.2 MB, free: 460 kB / 366.1 MB make -j1 -f Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.makefile (rm -f Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.pipe ; mkfifo Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.pipe ; head -c 1048576 < Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.pipe >> ../files/Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.sim & ./Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU -abortSlowSimulation -alarm=480 -lv LOG_STATS > Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU.pipe 2>&1)