Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.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.SimpleControlledDrive_original,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original") translateModel(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001116/0.001116, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.444/1.444, allocations: 222.9 MB / 239.8 MB, free: 4.543 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.008516/0.008516, allocations: 1.302 MB / 291.3 MB, free: 1.145 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 63.89 kB / 351.7 MB, free: 2.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1302, allocations: 49.72 MB / 401.5 MB, free: 328 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original): time 0.1862/0.3164, allocations: 4.204 MB / 405.7 MB, free: 7.715 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003934/0.3204, allocations: 2.58 MB / 408.2 MB, free: 5.934 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003969/0.3208, allocations: 17.12 kB / 408.3 MB, free: 5.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002473/0.3233, allocations: 1.043 MB / 409.3 MB, free: 5.656 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007551/0.3241, allocations: 363.4 kB / 409.7 MB, free: 5.512 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008029/0.3249, allocations: 288.6 kB / 409.9 MB, free: 5.344 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008822/0.3258, allocations: 0.8253 MB / 410.8 MB, free: 4.957 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004126/0.3262, allocations: 223.9 kB / 411 MB, free: 4.832 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000404/0.3266, allocations: 316.8 kB / 411.3 MB, free: 4.707 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000596/0.3272, allocations: 449.1 kB / 411.7 MB, free: 4.543 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.56e-05/0.3273, allocations: 29.88 kB / 411.8 MB, free: 4.543 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002455/0.3276, allocations: 81.81 kB / 411.8 MB, free: 4.527 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003349/0.3279, allocations: 317.5 kB / 412.1 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003276/0.3283, allocations: 450.1 kB / 412.6 MB, free: 4.086 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.3294, allocations: 1.131 MB / 413.7 MB, free: 3.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3294, allocations: 0 / 413.7 MB, free: 3.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3294, allocations: 0 / 413.7 MB, free: 3.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.3294, allocations: 1.219 kB / 413.7 MB, free: 3.59 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.002277/0.3317, allocations: 1.469 MB / 415.2 MB, free: 2.582 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.3317, allocations: 13.03 kB / 415.2 MB, free: 2.578 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002263/0.332, allocations: 135.8 kB / 415.3 MB, free: 2.504 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001509/0.3335, allocations: 1.046 MB / 416.4 MB, free: 1.875 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.107e-05/0.3335, allocations: 29.06 kB / 416.4 MB, free: 1.863 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.137e-05/0.3336, allocations: 43.88 kB / 416.5 MB, free: 1.848 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.3347, allocations: 495.9 kB / 416.9 MB, free: 1.609 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.3348, allocations: 1.344 kB / 416.9 MB, free: 1.609 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.449e-05/0.3348, allocations: 24 kB / 417 MB, free: 1.594 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.3348, allocations: 14.91 kB / 417 MB, free: 1.59 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.336, allocations: 418.1 kB / 417.4 MB, free: 1.473 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002991/0.339, allocations: 2.217 MB / 419.6 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001142/0.3401, allocations: 480.7 kB / 420.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000587/0.3407, allocations: 202.5 kB / 420.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.927e-05/0.3408, allocations: 4.922 kB / 420.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.3408, allocations: 37.77 kB / 420.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 1.923e-06/0.3408, allocations: 4 kB / 420.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004156/0.345, allocations: 1.721 MB / 422 MB, free: 14.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.907e-05/0.3451, allocations: 82.22 kB / 422.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002549/0.3476, allocations: 1.948 MB / 424.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.561e-05/0.3477, allocations: 34.95 kB / 424.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000395/0.3481, allocations: 493.1 kB / 424.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.3482, allocations: 148.1 kB / 424.7 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004109/0.3486, allocations: 286.2 kB / 425 MB, free: 12.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.3488, allocations: 365 kB / 425.4 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009967/0.3498, allocations: 0.58 MB / 425.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001134/0.3509, allocations: 0.7128 MB / 426.7 MB, free: 12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/0.3525, allocations: 0.9064 MB / 427.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.3525, allocations: 5.219 kB / 427.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=147) (initialization): time 0.002686/0.3552, allocations: 1.567 MB / 429.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.3552, allocations: 5.5 kB / 429.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.3552, allocations: 2.625 kB / 429.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000184/0.3554, allocations: 33.92 kB / 429.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/0.3567, allocations: 359.1 kB / 429.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001848/0.3585, allocations: 2.013 MB / 431.5 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000685/0.3592, allocations: 57.33 kB / 431.6 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.457e-05/0.3593, allocations: 35.62 kB / 431.6 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001452/0.3608, allocations: 0.9118 MB / 432.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009859/0.3618, allocations: 0.7026 MB / 433.2 MB, free: 7.047 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001391/0.3632, allocations: 0.8909 MB / 434.1 MB, free: 6.125 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.529e-06/0.3632, allocations: 4 kB / 434.1 MB, free: 6.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=147) (initialization_lambda0): time 0.002451/0.3656, allocations: 1.54 MB / 435.7 MB, free: 4.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.3657, allocations: 8 kB / 435.7 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.3657, allocations: 0 / 435.7 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001404/0.3658, allocations: 40.78 kB / 435.7 MB, free: 4.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008408/0.3667, allocations: 259.8 kB / 436 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003365/0.367, allocations: 0.5522 MB / 436.5 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006614/0.3677, allocations: 47.95 kB / 436.6 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.51e-05/0.3678, allocations: 40 kB / 436.6 MB, free: 3.602 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,speedController.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003308/0.3681, allocations: 232 kB / 436.8 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001728/0.3683, allocations: 122.4 kB / 437 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00127/0.3696, allocations: 0.4895 MB / 437.4 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.585e-06/0.3696, allocations: 4 kB / 437.5 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3696, allocations: 0 / 437.5 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3696, allocations: 0 / 437.5 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002354/0.372, allocations: 1.416 MB / 438.9 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.372, allocations: 4.125 kB / 438.9 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004925/0.3725, allocations: 107.9 kB / 439 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.3725, allocations: 0 / 439 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.794e-05/0.3725, allocations: 8 kB / 439 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.3726, allocations: 4 kB / 439 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.3726, allocations: 0 / 439 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001564/0.3741, allocations: 0.8241 MB / 439.8 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000351/0.3745, allocations: 259.6 kB / 440.1 MB, free: 0 / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.3746, allocations: 12.08 kB / 440.1 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003932/0.375, allocations: 32.08 kB / 440.1 MB, free: 15.95 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.3751, allocations: 39.89 kB / 440.1 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.433e-05/0.3752, allocations: 12 kB / 440.2 MB, free: 15.9 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001616/0.3768, allocations: 1.266 MB / 441.4 MB, free: 14.63 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3768, allocations: 0 / 441.4 MB, free: 14.63 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001085/0.3779, allocations: 372 kB / 441.8 MB, free: 14.27 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (damper.phi_rel,damper.w_rel,inertiaLoad.w,speedController.I.y,integrator.y,torqueLoad.phi) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * 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.0008954/0.3788, allocations: 376.3 kB / 442.2 MB, free: 14.03 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003503/0.3823, allocations: 1.812 MB / 444 MB, free: 12.22 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.3823, allocations: 0 / 444 MB, free: 12.22 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000499/0.3828, allocations: 213.8 kB / 444.2 MB, free: 12.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.384, allocations: 173.8 kB / 444.3 MB, free: 11.85 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003911/0.3879, allocations: 2.746 MB / 447.1 MB, free: 9.066 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008437/0.3888, allocations: 1.162 MB / 448.3 MB, free: 7.879 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008371/0.3896, allocations: 365 kB / 448.6 MB, free: 7.52 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001692/0.3898, allocations: 55.42 kB / 448.7 MB, free: 7.465 MB / 318.1 MB Notification: Performance of SimCode: time 2.786e-06/0.3898, allocations: 0 / 448.7 MB, free: 7.465 MB / 318.1 MB Notification: Performance of Templates: time 0.01743/0.4072, allocations: 9.328 MB / 458 MB, free: 14.21 MB / 334.1 MB make -j1 -f Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.makefile (rm -f Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.pipe ; mkfifo Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.pipe ; head -c 1048576 < Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.pipe >> ../files/Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.sim & ./Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original -abortSlowSimulation -alarm=480 -lv LOG_STATS > Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.pipe 2>&1)