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.000778/0.0007779, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005274/0.005274, allocations: 172.1 kB / 16.26 MB, free: 6.676 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.451/1.451, allocations: 223.3 MB / 240.3 MB, free: 5.367 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.007543/0.007543, allocations: 1.269 MB / 292.7 MB, free: 0.9102 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003081/0.0003082, allocations: 11.98 kB / 354.1 MB, free: 1.816 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.2952, allocations: 50.69 MB / 404.8 MB, free: 9.93 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleDrive_forFMU): time 0.004689/0.3, allocations: 2.859 MB / 407.7 MB, free: 8.844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003434/0.3034, allocations: 2.143 MB / 409.8 MB, free: 7.359 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002634/0.3037, allocations: 15.75 kB / 409.8 MB, free: 7.352 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00225/0.306, allocations: 1.005 MB / 410.8 MB, free: 7.105 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006988/0.3067, allocations: 307.7 kB / 411.2 MB, free: 6.996 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003919/0.3071, allocations: 121.5 kB / 411.3 MB, free: 6.926 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006079/0.3077, allocations: 0.5142 MB / 411.8 MB, free: 6.688 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002487/0.308, allocations: 117.8 kB / 411.9 MB, free: 6.625 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002751/0.3083, allocations: 203.4 kB / 412.1 MB, free: 6.555 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003878/0.3087, allocations: 309.9 kB / 412.4 MB, free: 6.465 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.141e-05/0.3087, allocations: 18.52 kB / 412.4 MB, free: 6.461 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000192/0.3089, allocations: 61.08 kB / 412.5 MB, free: 6.449 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002653/0.3092, allocations: 261.5 kB / 412.7 MB, free: 6.359 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002388/0.3094, allocations: 355.7 kB / 413.1 MB, free: 6.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008861/0.3103, allocations: 0.8485 MB / 413.9 MB, free: 5.785 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3103, allocations: 0.6562 kB / 413.9 MB, free: 5.785 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3103, allocations: 0 / 413.9 MB, free: 5.785 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.163e-05/0.3104, allocations: 3.938 kB / 413.9 MB, free: 5.781 MB / 286.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.001347/0.3117, allocations: 1.031 MB / 415 MB, free: 5 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.3118, allocations: 9.031 kB / 415 MB, free: 5 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.3119, allocations: 104.3 kB / 415.1 MB, free: 4.941 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001031/0.3129, allocations: 0.9071 MB / 416 MB, free: 4.383 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.313, allocations: 17.66 kB / 416 MB, free: 4.375 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.614e-05/0.313, allocations: 27.73 kB / 416 MB, free: 4.363 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003677/0.3134, allocations: 220.5 kB / 416.2 MB, free: 4.25 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.3134, allocations: 5.781 kB / 416.2 MB, free: 4.246 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.019e-05/0.3134, allocations: 14.97 kB / 416.3 MB, free: 4.234 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.3134, allocations: 10 kB / 416.3 MB, free: 4.23 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002565/0.3137, allocations: 145.3 kB / 416.4 MB, free: 4.184 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001631/0.3153, allocations: 1.341 MB / 417.8 MB, free: 3.375 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003932/0.3158, allocations: 260.5 kB / 418 MB, free: 3.203 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.3159, allocations: 94.09 kB / 418.1 MB, free: 3.168 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/0.316, allocations: 10.69 kB / 418.1 MB, free: 3.16 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.47e-05/0.316, allocations: 40.83 kB / 418.2 MB, free: 3.113 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.573e-06/0.316, allocations: 1.375 kB / 418.2 MB, free: 3.113 MB / 286.1 MB Notification: Performance of matching and sorting (n=25): time 0.001425/0.3174, allocations: 1.034 MB / 419.2 MB, free: 2.34 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.665e-05/0.3175, allocations: 58.61 kB / 419.2 MB, free: 2.273 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002165/0.3196, allocations: 1.744 MB / 421 MB, free: 1.621 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.3197, allocations: 30.83 kB / 421 MB, free: 1.586 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003472/0.32, allocations: 367.4 kB / 421.4 MB, free: 1.301 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.494e-05/0.3201, allocations: 105.9 kB / 421.5 MB, free: 1.223 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001674/0.3203, allocations: 127.2 kB / 421.6 MB, free: 1.164 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.514e-05/0.3204, allocations: 347.9 kB / 421.9 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000624/0.321, allocations: 466 kB / 422.4 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006805/0.3217, allocations: 0.5436 MB / 422.9 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008555/0.3226, allocations: 0.65 MB / 423.6 MB, free: 260 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3226, allocations: 1.125 kB / 423.6 MB, free: 260 kB / 286.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001945/0.3245, allocations: 1.282 MB / 424.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.3246, allocations: 6.156 kB / 424.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.3246, allocations: 5.531 kB / 424.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000342/0.3249, allocations: 78.8 kB / 425 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005407/0.3255, allocations: 178.9 kB / 425.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/0.3274, allocations: 2.112 MB / 427.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004642/0.3279, allocations: 21.97 kB / 427.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.807e-05/0.3279, allocations: 29.81 kB / 427.3 MB, free: 13.68 MB / 302.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.0006548/0.3286, allocations: 382.8 kB / 427.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/0.3287, allocations: 91.62 kB / 427.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004208/0.3292, allocations: 252.8 kB / 428 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.3292, allocations: 3.125 kB / 428 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.3292, allocations: 8.031 kB / 428 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.3292, allocations: 0 / 428 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001399/0.3306, allocations: 1.006 MB / 429 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.3306, allocations: 1.125 kB / 429 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002543/0.3309, allocations: 65.19 kB / 429.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.3309, allocations: 1.344 kB / 429.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.3309, allocations: 2.656 kB / 429.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.3309, allocations: 5.5 kB / 429.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3309, allocations: 0 / 429.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005311/0.3315, allocations: 436.9 kB / 429.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002684/0.3318, allocations: 224.8 kB / 429.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.359e-05/0.3318, allocations: 10.53 kB / 429.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.3321, allocations: 13.09 kB / 429.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.183e-05/0.3321, allocations: 11.48 kB / 429.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.3321, allocations: 4.562 kB / 429.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001455/0.3336, allocations: 1.14 MB / 430.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3336, allocations: 0 / 430.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006951/0.3343, allocations: 167.8 kB / 431.1 MB, free: 11.31 MB / 302.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.0008566/0.3351, allocations: 357.3 kB / 431.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00128/0.3364, allocations: 0.817 MB / 432.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3365, allocations: 4 kB / 432.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.3366, allocations: 85.03 kB / 432.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009128/0.3375, allocations: 112.2 kB / 432.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.3403, allocations: 2.241 MB / 434.7 MB, free: 8.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006808/0.341, allocations: 1.074 MB / 435.8 MB, free: 7.328 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001844/0.3412, allocations: 84.33 kB / 435.9 MB, free: 7.242 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/0.3413, allocations: 35.44 kB / 435.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3413, allocations: 0 / 435.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of Templates: time 0.01269/0.354, allocations: 6.104 MB / 442 MB, free: 1.137 MB / 302.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)