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.2.0-alpha.1/package.mo", uses=false) Using package Credibility with version 0.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.2.0-alpha.1/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.001581/0.001581, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002083/0.002083, allocations: 193.5 kB / 16.14 MB, free: 6.652 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.397/1.397, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.2.0-alpha.1/package.mo): time 0.008229/0.008228, allocations: 1.294 MB / 291.3 MB, free: 1.234 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 71.88 kB / 351.7 MB, free: 7.059 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1271, allocations: 49.73 MB / 401.5 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU): time 0.004963/0.1321, allocations: 3.241 MB / 404.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00323/0.1353, allocations: 2.188 MB / 406.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002234/0.1356, allocations: 8 kB / 406.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002234/0.1379, allocations: 1.001 MB / 407.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000582/0.1385, allocations: 310.9 kB / 408.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003542/0.1388, allocations: 119.4 kB / 408.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004755/0.1393, allocations: 0.5058 MB / 408.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.1395, allocations: 124.6 kB / 408.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002143/0.1397, allocations: 207.1 kB / 409.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003068/0.14, allocations: 331.1 kB / 409.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.254e-05/0.1401, allocations: 20 kB / 409.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001742/0.1403, allocations: 63.97 kB / 409.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002306/0.1405, allocations: 268.6 kB / 409.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002467/0.1408, allocations: 345.6 kB / 410.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006712/0.1415, allocations: 0.8563 MB / 411 MB, free: 11.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1415, allocations: 0 / 411 MB, free: 11.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.1415, allocations: 4 kB / 411 MB, free: 11.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.1415, allocations: 0 / 411 MB, free: 11.68 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001404/0.1429, allocations: 1.165 MB / 412.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.1429, allocations: 8.031 kB / 412.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.1431, allocations: 99.09 kB / 412.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009994/0.1441, allocations: 0.9055 MB / 413.2 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.1441, allocations: 20.56 kB / 413.2 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.85e-05/0.1442, allocations: 27.91 kB / 413.2 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003475/0.1445, allocations: 231.7 kB / 413.5 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.1445, allocations: 0 / 413.5 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.233e-05/0.1446, allocations: 15.94 kB / 413.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.1446, allocations: 11.88 kB / 413.5 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002436/0.1448, allocations: 138.2 kB / 413.6 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001614/0.1465, allocations: 1.333 MB / 415 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004022/0.1469, allocations: 263.9 kB / 415.2 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.1471, allocations: 96.75 kB / 415.3 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.1471, allocations: 4 kB / 415.3 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.837e-05/0.1471, allocations: 30.94 kB / 415.3 MB, free: 7.125 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.303e-06/0.1471, allocations: 4 kB / 415.3 MB, free: 7.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001586/0.1487, allocations: 1.041 MB / 416.4 MB, free: 5.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.491e-05/0.1488, allocations: 55.41 kB / 416.4 MB, free: 5.918 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001836/0.1506, allocations: 1.744 MB / 418.2 MB, free: 4.152 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.1506, allocations: 33.7 kB / 418.2 MB, free: 4.113 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002905/0.1509, allocations: 365 kB / 418.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.636e-05/0.151, allocations: 110.6 kB / 418.7 MB, free: 3.645 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002891/0.1513, allocations: 246.2 kB / 418.9 MB, free: 3.398 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1515, allocations: 349.9 kB / 419.3 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005476/0.152, allocations: 457.8 kB / 419.7 MB, free: 2.602 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006033/0.1526, allocations: 0.5468 MB / 420.3 MB, free: 2.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007768/0.1534, allocations: 0.6435 MB / 420.9 MB, free: 1.371 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1534, allocations: 0 / 420.9 MB, free: 1.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001829/0.1553, allocations: 1.287 MB / 422.2 MB, free: 76 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.1553, allocations: 4 kB / 422.2 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.1553, allocations: 8 kB / 422.2 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.197/0.3523, allocations: 79.7 kB / 422.3 MB, free: 52.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006465/0.353, allocations: 181.9 kB / 422.5 MB, free: 52.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/0.3545, allocations: 2.107 MB / 424.6 MB, free: 50.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004496/0.355, allocations: 22.59 kB / 424.6 MB, free: 50.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.281e-05/0.3551, allocations: 29.03 kB / 424.6 MB, free: 50.65 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.0005167/0.3556, allocations: 379.6 kB / 425 MB, free: 50.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/0.3557, allocations: 89.38 kB / 425.1 MB, free: 50.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003634/0.3561, allocations: 251.4 kB / 425.3 MB, free: 50.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.3561, allocations: 3.094 kB / 425.3 MB, free: 50.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-06/0.3561, allocations: 2.312 kB / 425.3 MB, free: 50.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.3561, allocations: 3.469 kB / 425.3 MB, free: 50.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.3572, allocations: 0.9928 MB / 426.3 MB, free: 50.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.3572, allocations: 0 / 426.3 MB, free: 50.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002338/0.3574, allocations: 56.2 kB / 426.4 MB, free: 50.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.3574, allocations: 4.562 kB / 426.4 MB, free: 50.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.3575, allocations: 3.812 kB / 426.4 MB, free: 50.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.3575, allocations: 6.625 kB / 426.4 MB, free: 50.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.175e-06/0.3575, allocations: 3.938 kB / 426.4 MB, free: 50.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004075/0.3579, allocations: 432.9 kB / 426.8 MB, free: 49.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002066/0.3581, allocations: 227.4 kB / 427 MB, free: 49.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.854e-05/0.3582, allocations: 4.641 kB / 427 MB, free: 49.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.3584, allocations: 7.25 kB / 427 MB, free: 49.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.891e-05/0.3584, allocations: 27.83 kB / 427.1 MB, free: 49.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.487e-06/0.3584, allocations: 3.281 kB / 427.1 MB, free: 49.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009882/0.3594, allocations: 1.137 MB / 428.2 MB, free: 49.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3594, allocations: 0 / 428.2 MB, free: 49.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005227/0.36, allocations: 169.7 kB / 428.4 MB, free: 49.34 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.0007824/0.3608, allocations: 366.1 kB / 428.7 MB, free: 49.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001014/0.3618, allocations: 0.8146 MB / 429.5 MB, free: 48.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3618, allocations: 3.938 kB / 429.6 MB, free: 48.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001129/0.3619, allocations: 86.39 kB / 429.6 MB, free: 48.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008129/0.3627, allocations: 106.8 kB / 429.7 MB, free: 48.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002417/0.3652, allocations: 2.173 MB / 431.9 MB, free: 47.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000473/0.3657, allocations: 1.066 MB / 433 MB, free: 46.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001822/0.3659, allocations: 75.47 kB / 433.1 MB, free: 46.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.188e-05/0.366, allocations: 38.7 kB / 433.1 MB, free: 46.88 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.366, allocations: 4 kB / 433.1 MB, free: 46.88 MB / 350.1 MB Notification: Performance of Templates: time 0.01126/0.3772, allocations: 6.279 MB / 439.4 MB, free: 46.34 MB / 350.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)