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.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.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.001868/0.001875, allocations: 110.9 kB / 16.37 MB, free: 6.469 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.002534/0.002534, allocations: 189.9 kB / 17.3 MB, free: 5.828 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.51/1.51, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/package.mo): time 0.01458/0.01458, allocations: 1.29 MB / 292.5 MB, free: 13.53 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001786/0.001786, allocations: 63.91 kB / 353.8 MB, free: 104 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2604, allocations: 49.73 MB / 403.6 MB, free: 35.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original): time 0.004922/0.2654, allocations: 4.202 MB / 407.8 MB, free: 30.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003371/0.2688, allocations: 2.623 MB / 410.4 MB, free: 28.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003865/0.2692, allocations: 19.94 kB / 410.4 MB, free: 28.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001836/0.271, allocations: 1.107 MB / 411.5 MB, free: 27.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005311/0.2716, allocations: 400.8 kB / 411.9 MB, free: 26.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006009/0.2722, allocations: 322.3 kB / 412.2 MB, free: 26.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006341/0.2728, allocations: 0.8765 MB / 413.1 MB, free: 25.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003153/0.2732, allocations: 242.6 kB / 413.4 MB, free: 25.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000256/0.2734, allocations: 350.6 kB / 413.7 MB, free: 24.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003288/0.2738, allocations: 474.5 kB / 414.2 MB, free: 24.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.417e-05/0.2738, allocations: 56 kB / 414.2 MB, free: 24.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001828/0.274, allocations: 115.9 kB / 414.3 MB, free: 24.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001985/0.2742, allocations: 332.5 kB / 414.6 MB, free: 23.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002552/0.2745, allocations: 492.7 kB / 415.1 MB, free: 23.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000774/0.2753, allocations: 1.187 MB / 416.3 MB, free: 22.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2753, allocations: 0 / 416.3 MB, free: 22.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.2753, allocations: 4 kB / 416.3 MB, free: 22.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.2753, allocations: 7.938 kB / 416.3 MB, free: 22.25 MB / 302.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.001835/0.2772, allocations: 1.463 MB / 417.8 MB, free: 20.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.2772, allocations: 12.03 kB / 417.8 MB, free: 20.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001392/0.2774, allocations: 134.6 kB / 417.9 MB, free: 20.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.2784, allocations: 1.056 MB / 419 MB, free: 19.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.942e-05/0.2784, allocations: 29 kB / 419 MB, free: 19.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.634e-05/0.2785, allocations: 47.91 kB / 419.1 MB, free: 19.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007691/0.2793, allocations: 494.3 kB / 419.5 MB, free: 18.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.2793, allocations: 0 / 419.5 MB, free: 18.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.475e-05/0.2793, allocations: 20 kB / 419.6 MB, free: 18.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.2793, allocations: 19.88 kB / 419.6 MB, free: 18.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008414/0.2802, allocations: 411.6 kB / 420 MB, free: 18.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002383/0.2826, allocations: 2.214 MB / 422.2 MB, free: 16.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008809/0.2835, allocations: 480.5 kB / 422.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004321/0.2839, allocations: 200.7 kB / 422.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.046e-05/0.284, allocations: 7.984 kB / 422.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.284, allocations: 38.56 kB / 422.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 1.683e-06/0.284, allocations: 0 / 422.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003101/0.2871, allocations: 1.72 MB / 424.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.743e-05/0.2872, allocations: 85.11 kB / 424.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001641/0.2888, allocations: 1.945 MB / 426.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.681e-05/0.2888, allocations: 33.7 kB / 426.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002792/0.2891, allocations: 492.8 kB / 427.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.623e-05/0.2892, allocations: 154 kB / 427.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002887/0.2895, allocations: 278.5 kB / 427.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.546e-05/0.2896, allocations: 361.9 kB / 428 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000728/0.2903, allocations: 0.576 MB / 428.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007735/0.2911, allocations: 0.7182 MB / 429.2 MB, free: 8.895 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.2923, allocations: 0.9144 MB / 430.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.2923, allocations: 4 kB / 430.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=147) (initialization): time 0.002002/0.2943, allocations: 1.562 MB / 431.7 MB, free: 6.367 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.2943, allocations: 4 kB / 431.7 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.2943, allocations: 4 kB / 431.7 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000166/0.2945, allocations: 36.83 kB / 431.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.2956, allocations: 359.5 kB / 432.1 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001408/0.297, allocations: 2.113 MB / 434.2 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000633/0.2976, allocations: 56.09 kB / 434.3 MB, free: 3.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.45e-05/0.2977, allocations: 47.91 kB / 434.3 MB, free: 3.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001096/0.2988, allocations: 0.9046 MB / 435.2 MB, free: 2.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007302/0.2996, allocations: 0.7065 MB / 435.9 MB, free: 1.941 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001109/0.3007, allocations: 0.8871 MB / 436.8 MB, free: 1.023 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.226e-06/0.3007, allocations: 0 / 436.8 MB, free: 1.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=147) (initialization_lambda0): time 0.002139/0.3028, allocations: 1.543 MB / 438.4 MB, free: 15.47 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.3029, allocations: 4 kB / 438.4 MB, free: 15.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.3029, allocations: 4 kB / 438.4 MB, free: 15.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000145/0.303, allocations: 36.78 kB / 438.4 MB, free: 15.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008313/0.3039, allocations: 271.8 kB / 438.7 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003491/0.3042, allocations: 0.5407 MB / 439.2 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005544/0.3048, allocations: 48.06 kB / 439.3 MB, free: 14.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.358e-05/0.3049, allocations: 43.98 kB / 439.3 MB, free: 14.5 MB / 318.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.0002921/0.3052, allocations: 236.4 kB / 439.5 MB, free: 14.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/0.3053, allocations: 118.5 kB / 439.7 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001187/0.3065, allocations: 493.4 kB / 440.1 MB, free: 13.65 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.3065, allocations: 4 kB / 440.1 MB, free: 13.65 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.3065, allocations: 0 / 440.1 MB, free: 13.65 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.3066, allocations: 7.984 kB / 440.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002464/0.309, allocations: 1.409 MB / 441.6 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-05/0.3091, allocations: 4 kB / 441.6 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004804/0.3096, allocations: 108 kB / 441.7 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.097e-06/0.3096, allocations: 4 kB / 441.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.85e-05/0.3096, allocations: 4 kB / 441.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.533e-06/0.3096, allocations: 11.92 kB / 441.7 MB, free: 12.03 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.3096, allocations: 4 kB / 441.7 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001457/0.3111, allocations: 0.815 MB / 442.5 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004374/0.3116, allocations: 259.6 kB / 442.8 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.32e-05/0.3117, allocations: 11.98 kB / 442.8 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003641/0.312, allocations: 35.91 kB / 442.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.372e-05/0.3121, allocations: 39.75 kB / 442.9 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.209e-05/0.3122, allocations: 15.94 kB / 442.9 MB, free: 10.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001693/0.3139, allocations: 1.266 MB / 444.1 MB, free: 9.535 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3139, allocations: 0 / 444.1 MB, free: 9.535 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001052/0.3149, allocations: 372 kB / 444.5 MB, free: 9.172 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.0009768/0.3159, allocations: 378.7 kB / 444.9 MB, free: 8.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00363/0.3196, allocations: 1.815 MB / 446.7 MB, free: 7.117 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.3196, allocations: 0 / 446.7 MB, free: 7.117 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006421/0.3202, allocations: 208.5 kB / 446.9 MB, free: 6.914 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001515/0.3218, allocations: 196.1 kB / 447.1 MB, free: 6.738 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005181/0.3269, allocations: 2.367 MB / 449.4 MB, free: 4.328 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.3281, allocations: 1.166 MB / 450.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001284/0.3294, allocations: 377 kB / 451 MB, free: 2.762 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002278/0.3296, allocations: 51.44 kB / 451 MB, free: 2.711 MB / 318.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3296, allocations: 8 kB / 451 MB, free: 2.703 MB / 318.1 MB Notification: Performance of Templates: time 0.02699/0.3566, allocations: 9.824 MB / 460.9 MB, free: 8.953 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 -s cvode -lv LOG_STATS > Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.pipe 2>&1)