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.001688/0.001688, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002022/0.002022, allocations: 194.3 kB / 16.25 MB, free: 6.621 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.426/1.426, allocations: 222.9 MB / 239.9 MB, free: 4.516 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.008542/0.008542, allocations: 1.282 MB / 291.4 MB, free: 1.129 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 56.09 kB / 351.9 MB, free: 1.93 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1129, allocations: 49.73 MB / 401.6 MB, free: 164 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original): time 0.2228/0.3358, allocations: 4.214 MB / 405.8 MB, free: 7.855 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005319/0.3412, allocations: 2.566 MB / 408.4 MB, free: 6.082 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008473/0.3421, allocations: 21.06 kB / 408.4 MB, free: 6.074 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003119/0.3453, allocations: 1.078 MB / 409.5 MB, free: 5.801 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001077/0.3463, allocations: 352.2 kB / 409.9 MB, free: 5.664 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009437/0.3473, allocations: 294.6 kB / 410.1 MB, free: 5.488 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001321/0.3486, allocations: 0.8671 MB / 411 MB, free: 5.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004763/0.3491, allocations: 234.6 kB / 411.2 MB, free: 4.938 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000631/0.3498, allocations: 368.1 kB / 411.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000765/0.3505, allocations: 478 kB / 412.1 MB, free: 4.586 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001223/0.3507, allocations: 62.41 kB / 412.1 MB, free: 4.582 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003742/0.351, allocations: 105.8 kB / 412.2 MB, free: 4.57 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004823/0.3515, allocations: 346.3 kB / 412.6 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004921/0.352, allocations: 486 kB / 413 MB, free: 4.066 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001873/0.3539, allocations: 1.166 MB / 414.2 MB, free: 3.555 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.367e-06/0.3539, allocations: 0.9375 kB / 414.2 MB, free: 3.555 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.3539, allocations: 0 / 414.2 MB, free: 3.555 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.959e-05/0.354, allocations: 0 / 414.2 MB, free: 3.555 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.002531/0.3565, allocations: 1.469 MB / 415.7 MB, free: 2.547 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.259e-05/0.3566, allocations: 9.719 kB / 415.7 MB, free: 2.547 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002349/0.3568, allocations: 143.9 kB / 415.8 MB, free: 2.465 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001906/0.3587, allocations: 1.038 MB / 416.9 MB, free: 1.844 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.812e-05/0.3588, allocations: 30.25 kB / 416.9 MB, free: 1.832 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.3589, allocations: 47.06 kB / 416.9 MB, free: 1.812 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.3601, allocations: 495.1 kB / 417.4 MB, free: 1.574 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.771e-05/0.3601, allocations: 3.062 kB / 417.4 MB, free: 1.574 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.999e-05/0.3602, allocations: 16.38 kB / 417.4 MB, free: 1.562 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.036e-05/0.3602, allocations: 13.81 kB / 417.5 MB, free: 1.559 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.3613, allocations: 422.1 kB / 417.9 MB, free: 1.438 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003371/0.3647, allocations: 2.22 MB / 420.1 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.3658, allocations: 481.8 kB / 420.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005595/0.3664, allocations: 211.1 kB / 420.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5e-05/0.3664, allocations: 3.344 kB / 420.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/0.3665, allocations: 33.69 kB / 420.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 2.424e-06/0.3665, allocations: 4 kB / 420.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004273/0.3708, allocations: 1.721 MB / 422.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.3709, allocations: 85.25 kB / 422.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002735/0.3736, allocations: 1.952 MB / 424.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.23e-05/0.3736, allocations: 31.8 kB / 424.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004378/0.3741, allocations: 489.5 kB / 425.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001396/0.3742, allocations: 152.1 kB / 425.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004567/0.3747, allocations: 282.8 kB / 425.5 MB, free: 12.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.3749, allocations: 361 kB / 425.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001053/0.3759, allocations: 0.5798 MB / 426.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001129/0.3771, allocations: 0.7148 MB / 427.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001664/0.3787, allocations: 0.9139 MB / 428.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.3788, allocations: 0 / 428.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=147) (initialization): time 0.003187/0.382, allocations: 1.56 MB / 429.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.382, allocations: 12.25 kB / 429.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.382, allocations: 2.219 kB / 429.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001907/0.3822, allocations: 37.3 kB / 429.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.3835, allocations: 354.9 kB / 430 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002042/0.3855, allocations: 2.118 MB / 432.1 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007582/0.3863, allocations: 51.95 kB / 432.2 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.25e-05/0.3864, allocations: 36 kB / 432.2 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001546/0.3879, allocations: 0.9125 MB / 433.1 MB, free: 7.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009843/0.3889, allocations: 0.6987 MB / 433.8 MB, free: 6.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001441/0.3904, allocations: 0.8873 MB / 434.7 MB, free: 5.672 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.466e-06/0.3904, allocations: 3.938 kB / 434.7 MB, free: 5.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=147) (initialization_lambda0): time 0.002574/0.393, allocations: 1.548 MB / 436.3 MB, free: 4.109 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.393, allocations: 8 kB / 436.3 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.393, allocations: 0 / 436.3 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001546/0.3932, allocations: 37.58 kB / 436.3 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008522/0.394, allocations: 271.5 kB / 436.6 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003492/0.3944, allocations: 0.5485 MB / 437.1 MB, free: 3.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007065/0.3951, allocations: 47.97 kB / 437.2 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.108e-05/0.3952, allocations: 36 kB / 437.2 MB, free: 3.141 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.0002588/0.3955, allocations: 236 kB / 437.4 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001621/0.3956, allocations: 118.5 kB / 437.6 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001301/0.3969, allocations: 0.4934 MB / 438 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.397, allocations: 4 kB / 438 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.397, allocations: 4 kB / 438.1 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.397, allocations: 0 / 438.1 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002988/0.4, allocations: 1.416 MB / 439.5 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.301e-06/0.4, allocations: 0 / 439.5 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005175/0.4005, allocations: 107.9 kB / 439.6 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.986e-06/0.4006, allocations: 11.94 kB / 439.6 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.849e-05/0.4006, allocations: 12 kB / 439.6 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.037e-05/0.4006, allocations: 7.938 kB / 439.6 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.4006, allocations: 0 / 439.6 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001863/0.4025, allocations: 0.8217 MB / 440.4 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004143/0.4029, allocations: 255.6 kB / 440.7 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.403, allocations: 8 kB / 440.7 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004198/0.4035, allocations: 43.89 kB / 440.7 MB, free: 15.47 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.879e-05/0.4036, allocations: 27.95 kB / 440.8 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.4036, allocations: 12 kB / 440.8 MB, free: 15.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001722/0.4053, allocations: 1.27 MB / 442 MB, free: 14.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4053, allocations: 0 / 442 MB, free: 14.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001207/0.4066, allocations: 368 kB / 442.4 MB, free: 13.8 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.0009122/0.4075, allocations: 360.6 kB / 442.7 MB, free: 13.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003519/0.411, allocations: 1.843 MB / 444.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.411, allocations: 0 / 444.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004961/0.4115, allocations: 207.6 kB / 444.8 MB, free: 11.53 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001163/0.4127, allocations: 198.2 kB / 445 MB, free: 11.35 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004665/0.4174, allocations: 2.726 MB / 447.7 MB, free: 8.582 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001124/0.4185, allocations: 1.167 MB / 448.9 MB, free: 7.391 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001142/0.4197, allocations: 373 kB / 449.2 MB, free: 7.023 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002271/0.4199, allocations: 59.42 kB / 449.3 MB, free: 6.965 MB / 318.1 MB Notification: Performance of SimCode: time 1.383e-06/0.4199, allocations: 0 / 449.3 MB, free: 6.965 MB / 318.1 MB Notification: Performance of Templates: time 0.0214/0.4413, allocations: 9.68 MB / 459 MB, free: 13.37 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)