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.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_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.001268/0.001272, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001359/0.001359, allocations: 194.6 kB / 16.25 MB, free: 6.641 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.371/1.371, allocations: 222.9 MB / 239.9 MB, free: 4.539 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.008354/0.008354, allocations: 1.292 MB / 291.4 MB, free: 1.16 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 63.89 kB / 351.9 MB, free: 1.977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1352, allocations: 49.73 MB / 401.6 MB, free: 212 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration): time 0.1759/0.3111, allocations: 4.496 MB / 406.1 MB, free: 7.441 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005599/0.3168, allocations: 3.463 MB / 409.6 MB, free: 5.012 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005386/0.3173, allocations: 20.78 kB / 409.6 MB, free: 5.004 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002849/0.3202, allocations: 1.112 MB / 410.7 MB, free: 4.719 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009688/0.3212, allocations: 401.6 kB / 411.1 MB, free: 4.551 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001079/0.3223, allocations: 361 kB / 411.5 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001052/0.3234, allocations: 0.9248 MB / 412.4 MB, free: 3.902 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004431/0.3238, allocations: 271.4 kB / 412.7 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005407/0.3244, allocations: 390.2 kB / 413 MB, free: 3.586 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006019/0.325, allocations: 0.4996 MB / 413.5 MB, free: 3.387 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.481e-05/0.3251, allocations: 61.88 kB / 413.6 MB, free: 3.387 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004077/0.3255, allocations: 167.7 kB / 413.8 MB, free: 3.355 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003563/0.3259, allocations: 354.9 kB / 414.1 MB, free: 3.203 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003762/0.3262, allocations: 0.514 MB / 414.6 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001609/0.3279, allocations: 1.269 MB / 415.9 MB, free: 2.266 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.3279, allocations: 0 / 415.9 MB, free: 2.266 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.3279, allocations: 4.688 kB / 415.9 MB, free: 2.262 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.754e-05/0.3279, allocations: 1.125 kB / 415.9 MB, free: 2.262 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: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.002307/0.3302, allocations: 1.544 MB / 417.4 MB, free: 1.188 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.3303, allocations: 8.625 kB / 417.5 MB, free: 1.188 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001891/0.3305, allocations: 144.1 kB / 417.6 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/0.3317, allocations: 1.087 MB / 418.7 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.231e-05/0.3317, allocations: 35.5 kB / 418.7 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.774e-05/0.3318, allocations: 46.03 kB / 418.8 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008566/0.3327, allocations: 478.3 kB / 419.2 MB, free: 200 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.442e-05/0.3327, allocations: 6 kB / 419.2 MB, free: 196 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.303e-05/0.3328, allocations: 20.06 kB / 419.3 MB, free: 184 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.49e-05/0.3328, allocations: 14.06 kB / 419.3 MB, free: 180 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007373/0.3335, allocations: 349.7 kB / 419.6 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003079/0.3366, allocations: 2.142 MB / 421.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008744/0.3375, allocations: 450.1 kB / 422.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004307/0.338, allocations: 197.4 kB / 422.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.611e-05/0.338, allocations: 9.422 kB / 422.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005548/0.3386, allocations: 221 kB / 422.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.355e-06/0.3386, allocations: 1.344 kB / 422.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003451/0.3421, allocations: 1.706 MB / 424.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.092e-05/0.3421, allocations: 115.7 kB / 424.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002507/0.3447, allocations: 2.001 MB / 426.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.962e-05/0.3447, allocations: 35.73 kB / 426.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004201/0.3451, allocations: 490.7 kB / 426.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/0.3453, allocations: 170.6 kB / 427.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003704/0.3457, allocations: 290.1 kB / 427.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3458, allocations: 353.2 kB / 427.7 MB, free: 11 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000827/0.3467, allocations: 0.5413 MB / 428.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009094/0.3476, allocations: 0.6825 MB / 429 MB, free: 10.4 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/0.3488, allocations: 0.8593 MB / 429.8 MB, free: 9.965 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3489, allocations: 5.375 kB / 429.8 MB, free: 9.961 MB / 302.1 MB Notification: Performance of matching and sorting (n=147) (initialization): time 0.002598/0.3515, allocations: 1.508 MB / 431.3 MB, free: 9.148 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.3515, allocations: 12.03 kB / 431.3 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.3515, allocations: 7.938 kB / 431.4 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002018/0.3517, allocations: 36.83 kB / 431.4 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/0.353, allocations: 351.5 kB / 431.7 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00279/0.3558, allocations: 3.554 MB / 435.3 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006375/0.3565, allocations: 43.97 kB / 435.3 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.897e-05/0.3566, allocations: 32 kB / 435.4 MB, free: 4.816 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001271/0.3579, allocations: 0.8773 MB / 436.2 MB, free: 3.938 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008951/0.3588, allocations: 0.6723 MB / 436.9 MB, free: 3.227 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001182/0.36, allocations: 0.8353 MB / 437.7 MB, free: 2.359 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.288e-06/0.36, allocations: 3.938 kB / 437.8 MB, free: 2.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=147) (initialization_lambda0): time 0.002185/0.3622, allocations: 1.484 MB / 439.2 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.3622, allocations: 8.281 kB / 439.2 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.3622, allocations: 4 kB / 439.2 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001436/0.3623, allocations: 32.84 kB / 439.3 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009213/0.3633, allocations: 265.4 kB / 439.5 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001293/0.3646, allocations: 1.99 MB / 441.5 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006007/0.3652, allocations: 40.02 kB / 441.6 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.656e-05/0.3653, allocations: 39.98 kB / 441.6 MB, free: 14.32 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.0002694/0.3655, allocations: 232 kB / 441.8 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001742/0.3657, allocations: 126.5 kB / 442 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001132/0.3669, allocations: 498.7 kB / 442.4 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.3669, allocations: 4 kB / 442.4 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.3669, allocations: 0 / 442.4 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.3669, allocations: 3.984 kB / 442.5 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002306/0.3692, allocations: 1.43 MB / 443.9 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.3692, allocations: 4.75 kB / 443.9 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004491/0.3697, allocations: 91.89 kB / 444 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.3697, allocations: 7.938 kB / 444 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.465e-05/0.3697, allocations: 23.95 kB / 444 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.3698, allocations: 0 / 444 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.3698, allocations: 4 kB / 444 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001361/0.3711, allocations: 0.7797 MB / 444.8 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003589/0.3715, allocations: 267.5 kB / 445.1 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.3716, allocations: 11.94 kB / 445.1 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003563/0.372, allocations: 31.91 kB / 445.1 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.41e-05/0.3721, allocations: 23.97 kB / 445.1 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.904e-05/0.3721, allocations: 19.94 kB / 445.1 MB, free: 10.65 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001633/0.3738, allocations: 1.303 MB / 446.4 MB, free: 9.344 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3738, allocations: 7.938 kB / 446.4 MB, free: 9.336 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001252/0.375, allocations: 396 kB / 446.8 MB, free: 8.949 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.001783/0.3768, allocations: 0.7096 MB / 447.5 MB, free: 8.539 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003759/0.3806, allocations: 1.807 MB / 449.4 MB, free: 6.734 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.3806, allocations: 0.6875 kB / 449.4 MB, free: 6.734 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003919/0.381, allocations: 199.7 kB / 449.5 MB, free: 6.539 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/0.3823, allocations: 201.2 kB / 449.7 MB, free: 6.359 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004312/0.3866, allocations: 2.908 MB / 452.7 MB, free: 3.414 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007811/0.3874, allocations: 1.197 MB / 453.8 MB, free: 2.191 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009125/0.3883, allocations: 385.2 kB / 454.2 MB, free: 1.812 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001829/0.3885, allocations: 59.42 kB / 454.3 MB, free: 1.754 MB / 318.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3885, allocations: 4 kB / 454.3 MB, free: 1.75 MB / 318.1 MB Notification: Performance of Templates: time 0.0208/0.4093, allocations: 11.47 MB / 465.8 MB, free: 6.395 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 -lv LOG_STATS > Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration.pipe 2>&1)