Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration.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_forCalibration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration") translateModel(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 107.4 kB / 16.36 MB, free: 6.285 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.001371/0.001371, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.453/1.453, 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.008126/0.008126, allocations: 1.3 MB / 292.4 MB, free: 13.51 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 63.91 kB / 353.8 MB, free: 76 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2687, allocations: 49.72 MB / 403.6 MB, free: 35.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration): time 0.006313/0.2751, allocations: 4.519 MB / 408.1 MB, free: 30.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00552/0.2806, allocations: 3.538 MB / 411.6 MB, free: 26.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008582/0.2815, allocations: 19.88 kB / 411.6 MB, free: 26.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002523/0.2841, allocations: 1.146 MB / 412.8 MB, free: 25.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001011/0.2851, allocations: 444.9 kB / 413.2 MB, free: 25.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009306/0.286, allocations: 410.5 kB / 413.6 MB, free: 24.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006711/0.2867, allocations: 0.9238 MB / 414.5 MB, free: 24.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003506/0.2871, allocations: 267.4 kB / 414.8 MB, free: 23.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003234/0.2874, allocations: 394.3 kB / 415.2 MB, free: 23.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005637/0.288, allocations: 494.3 kB / 415.7 MB, free: 22.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.998e-05/0.2881, allocations: 64 kB / 415.7 MB, free: 22.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002648/0.2883, allocations: 171.9 kB / 415.9 MB, free: 22.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001967/0.2885, allocations: 356.4 kB / 416.2 MB, free: 22.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002918/0.2888, allocations: 0.5045 MB / 416.8 MB, free: 21.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008755/0.2897, allocations: 1.304 MB / 418.1 MB, free: 20.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2897, allocations: 0 / 418.1 MB, free: 20.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2897, allocations: 0 / 418.1 MB, free: 20.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.2898, allocations: 0 / 418.1 MB, free: 20.52 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: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.002077/0.2918, allocations: 1.545 MB / 419.6 MB, free: 18.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/0.2919, allocations: 8.031 kB / 419.6 MB, free: 18.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/0.2921, allocations: 142.5 kB / 419.7 MB, free: 18.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001247/0.2933, allocations: 1.109 MB / 420.9 MB, free: 17.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.2934, allocations: 29 kB / 420.9 MB, free: 17.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.679e-05/0.2935, allocations: 51.91 kB / 420.9 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000773/0.2943, allocations: 473.5 kB / 421.4 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.605e-05/0.2943, allocations: 4 kB / 421.4 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.927e-05/0.2943, allocations: 16 kB / 421.4 MB, free: 17.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.2944, allocations: 11.94 kB / 421.4 MB, free: 17.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006668/0.295, allocations: 339.7 kB / 421.8 MB, free: 16.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002403/0.2975, allocations: 2.144 MB / 423.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007337/0.2982, allocations: 441.6 kB / 424.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003507/0.2986, allocations: 203.4 kB / 424.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.124e-05/0.2986, allocations: 12.33 kB / 424.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003934/0.299, allocations: 215.8 kB / 424.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.324e-06/0.299, allocations: 0 / 424.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002829/0.3019, allocations: 1.717 MB / 426.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.63e-05/0.3019, allocations: 114.7 kB / 426.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001865/0.3038, allocations: 2.007 MB / 428.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.876e-05/0.3039, allocations: 33.7 kB / 428.6 MB, free: 9.535 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002877/0.3041, allocations: 488.7 kB / 429.1 MB, free: 9.055 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.268e-05/0.3042, allocations: 177.7 kB / 429.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002655/0.3045, allocations: 278.6 kB / 429.5 MB, free: 8.598 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.45e-05/0.3046, allocations: 353.9 kB / 429.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006435/0.3053, allocations: 0.537 MB / 430.4 MB, free: 7.707 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007424/0.306, allocations: 0.684 MB / 431.1 MB, free: 6.984 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.307, allocations: 0.8702 MB / 432 MB, free: 6.082 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3071, allocations: 0 / 432 MB, free: 6.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=147) (initialization): time 0.001869/0.3089, allocations: 1.504 MB / 433.5 MB, free: 4.566 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.309, allocations: 8 kB / 433.5 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.309, allocations: 7.922 kB / 433.5 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001925/0.3092, allocations: 36.84 kB / 433.5 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001124/0.3103, allocations: 351.6 kB / 433.9 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002083/0.3124, allocations: 3.55 MB / 437.4 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005555/0.313, allocations: 39.97 kB / 437.5 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.159e-05/0.3131, allocations: 36 kB / 437.5 MB, free: 244 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001286/0.3144, allocations: 0.8773 MB / 438.4 MB, free: 15.36 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008888/0.3153, allocations: 0.6723 MB / 439.1 MB, free: 14.65 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001211/0.3165, allocations: 0.8353 MB / 439.9 MB, free: 13.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.999e-06/0.3165, allocations: 3.938 kB / 439.9 MB, free: 13.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=147) (initialization_lambda0): time 0.002202/0.3187, allocations: 1.484 MB / 441.4 MB, free: 12.29 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.3187, allocations: 4 kB / 441.4 MB, free: 12.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.3187, allocations: 4 kB / 441.4 MB, free: 12.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001456/0.3189, allocations: 41.11 kB / 441.4 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008791/0.3198, allocations: 263.6 kB / 441.7 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001458/0.3213, allocations: 1.989 MB / 443.7 MB, free: 9.816 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005553/0.3218, allocations: 40.2 kB / 443.7 MB, free: 9.777 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.016e-05/0.3219, allocations: 43.94 kB / 443.8 MB, free: 9.734 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: 6 ($PRE.measurementsTable.nextTimeEvent,$whenCondition1,measurementsTable.nextTimeEventScaled,$PRE.measurementsTable.nextTimeEventScaled,measurementsTable.nextTimeEvent,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): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {1, 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.0002812/0.3222, allocations: 236.5 kB / 444 MB, free: 9.496 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001635/0.3224, allocations: 126.4 kB / 444.1 MB, free: 9.371 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001172/0.3235, allocations: 0.4903 MB / 444.6 MB, free: 8.871 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.3236, allocations: 4 kB / 444.6 MB, free: 8.867 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.3236, allocations: 0 / 444.6 MB, free: 8.867 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.3236, allocations: 3.984 kB / 444.6 MB, free: 8.863 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002535/0.3261, allocations: 1.431 MB / 446 MB, free: 7.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.3261, allocations: 4.031 kB / 446 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004411/0.3266, allocations: 99.81 kB / 446.1 MB, free: 7.254 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.3266, allocations: 0 / 446.1 MB, free: 7.254 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.122e-05/0.3267, allocations: 15.94 kB / 446.2 MB, free: 7.238 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.3267, allocations: 4 kB / 446.2 MB, free: 7.234 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3267, allocations: 0 / 446.2 MB, free: 7.234 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.3281, allocations: 0.7855 MB / 446.9 MB, free: 6.422 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004806/0.3286, allocations: 267.5 kB / 447.2 MB, free: 6.141 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001329/0.3287, allocations: 19.92 kB / 447.2 MB, free: 6.121 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003554/0.3291, allocations: 19.98 kB / 447.2 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.492e-05/0.3292, allocations: 27.97 kB / 447.3 MB, free: 6.074 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.129e-05/0.3292, allocations: 15.98 kB / 447.3 MB, free: 6.059 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001875/0.3311, allocations: 1.311 MB / 448.6 MB, free: 4.746 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3311, allocations: 0 / 448.6 MB, free: 4.746 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001423/0.3325, allocations: 396 kB / 449 MB, free: 4.359 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (damper.phi_rel,damper.w_rel,inertiaLoad.w,speedController.I.y,torqueLoad.phi,sine.phi) * Number of discrete variables: 3 ($whenCondition1,measurementsTable.nextTimeEvent,measurementsTable.nextTimeEventScaled) * Number of discrete states: 2 (measurementsTable.nextTimeEvent,measurementsTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00203/0.3346, allocations: 0.6983 MB / 449.7 MB, free: 3.965 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003781/0.3384, allocations: 1.795 MB / 451.5 MB, free: 2.176 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.3384, allocations: 0 / 451.5 MB, free: 2.176 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003744/0.3388, allocations: 187.5 kB / 451.7 MB, free: 1.992 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001123/0.3399, allocations: 205 kB / 451.9 MB, free: 1.805 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004389/0.3443, allocations: 2.525 MB / 454.4 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001059/0.3454, allocations: 1.197 MB / 455.6 MB, free: 14.01 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001033/0.3464, allocations: 389.2 kB / 456 MB, free: 13.63 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002115/0.3467, allocations: 59.42 kB / 456 MB, free: 13.57 MB / 334.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3467, allocations: 3.938 kB / 456 MB, free: 13.57 MB / 334.1 MB Notification: Performance of Templates: time 0.02254/0.3692, allocations: 11.55 MB / 467.6 MB, free: 2.137 MB / 334.1 MB make -j1 -f Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration.makefile (rm -f Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration.pipe ; mkfifo Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration.pipe ; head -c 1048576 < Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration.pipe >> ../files/Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration.sim & ./Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration.pipe 2>&1)