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.001064/0.001068, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.315/1.315, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.007632/0.007632, allocations: 1.294 MB / 291.7 MB, free: 1.016 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001094/0.001094, allocations: 55.91 kB / 352.4 MB, free: 1.641 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2172, allocations: 49.72 MB / 402.1 MB, free: 10.27 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration): time 0.004603/0.2218, allocations: 4.518 MB / 406.6 MB, free: 7.461 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003852/0.2257, allocations: 3.53 MB / 410.2 MB, free: 4.977 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003474/0.226, allocations: 22.53 kB / 410.2 MB, free: 4.969 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002295/0.2283, allocations: 1.155 MB / 411.3 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006605/0.229, allocations: 448.6 kB / 411.8 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007434/0.2298, allocations: 402.1 kB / 412.2 MB, free: 4.219 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007071/0.2305, allocations: 0.9194 MB / 413.1 MB, free: 3.777 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003306/0.2308, allocations: 271.5 kB / 413.4 MB, free: 3.633 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003569/0.2312, allocations: 392.2 kB / 413.7 MB, free: 3.457 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004619/0.2317, allocations: 0.4891 MB / 414.2 MB, free: 3.258 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.161e-05/0.2318, allocations: 61.53 kB / 414.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002857/0.232, allocations: 168 kB / 414.5 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002591/0.2323, allocations: 353.8 kB / 414.8 MB, free: 3.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003036/0.2326, allocations: 0.5023 MB / 415.3 MB, free: 2.695 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001065/0.2337, allocations: 1.277 MB / 416.6 MB, free: 2.137 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2337, allocations: 1.062 kB / 416.6 MB, free: 2.137 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2337, allocations: 4 kB / 416.6 MB, free: 2.133 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.508e-05/0.2337, allocations: 0 / 416.6 MB, free: 2.133 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.001795/0.2355, allocations: 1.548 MB / 418.1 MB, free: 1.055 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.811e-05/0.2356, allocations: 9.688 kB / 418.1 MB, free: 1.055 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001578/0.2357, allocations: 143.8 kB / 418.3 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.2368, allocations: 1.087 MB / 419.4 MB, free: 336 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.2368, allocations: 30.69 kB / 419.4 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.562e-05/0.2369, allocations: 49.81 kB / 419.4 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000704/0.2376, allocations: 480.4 kB / 419.9 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.2376, allocations: 1.781 kB / 419.9 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.608e-05/0.2377, allocations: 17.67 kB / 419.9 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.2377, allocations: 13.56 kB / 420 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007028/0.2384, allocations: 345.5 kB / 420.3 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002627/0.241, allocations: 2.145 MB / 422.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000784/0.2418, allocations: 456.6 kB / 422.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003821/0.2422, allocations: 192.9 kB / 423.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.467e-05/0.2422, allocations: 5.297 kB / 423.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004722/0.2427, allocations: 226.2 kB / 423.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.743e-06/0.2427, allocations: 3.938 kB / 423.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.00302/0.2458, allocations: 1.711 MB / 425 MB, free: 12.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.257e-05/0.2458, allocations: 114.8 kB / 425.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002089/0.2479, allocations: 2.005 MB / 427.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.946e-05/0.248, allocations: 32.83 kB / 427.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003654/0.2484, allocations: 490.5 kB / 427.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/0.2485, allocations: 170.1 kB / 427.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003317/0.2488, allocations: 277.9 kB / 428.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.249, allocations: 353.5 kB / 428.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007343/0.2497, allocations: 0.5409 MB / 429 MB, free: 10.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008254/0.2505, allocations: 0.6836 MB / 429.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001189/0.2517, allocations: 0.8632 MB / 430.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.2517, allocations: 1.375 kB / 430.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=147) (initialization): time 0.002199/0.2539, allocations: 1.514 MB / 432 MB, free: 8.809 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.254, allocations: 7.984 kB / 432 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.254, allocations: 7.938 kB / 432 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001756/0.2542, allocations: 37.12 kB / 432.1 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001225/0.2554, allocations: 359.4 kB / 432.4 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002687/0.2581, allocations: 3.547 MB / 436 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005472/0.2587, allocations: 43.97 kB / 436 MB, free: 4.508 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.248e-05/0.2588, allocations: 36 kB / 436 MB, free: 4.473 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001235/0.26, allocations: 0.8734 MB / 436.9 MB, free: 3.598 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007805/0.2608, allocations: 0.6723 MB / 437.6 MB, free: 2.891 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001163/0.262, allocations: 0.8353 MB / 438.4 MB, free: 2.023 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.523e-05/0.262, allocations: 7.938 kB / 438.4 MB, free: 2.016 MB / 302.1 MB Notification: Performance of matching and sorting (n=147) (initialization_lambda0): time 0.00196/0.2639, allocations: 1.484 MB / 439.9 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.949e-06/0.264, allocations: 8 kB / 439.9 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.264, allocations: 4 kB / 439.9 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001173/0.2641, allocations: 37.12 kB / 440 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008079/0.2649, allocations: 263.6 kB / 440.2 MB, free: 216 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001258/0.2662, allocations: 1.993 MB / 442.2 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000429/0.2666, allocations: 31.98 kB / 442.3 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.726e-05/0.2667, allocations: 40 kB / 442.3 MB, free: 13.98 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.0002162/0.2669, allocations: 228.5 kB / 442.5 MB, free: 13.75 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.2671, allocations: 122.4 kB / 442.6 MB, free: 13.62 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009523/0.268, allocations: 0.4942 MB / 443.1 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.2681, allocations: 4 kB / 443.1 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.2681, allocations: 0 / 443.1 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.2681, allocations: 7.984 kB / 443.1 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001977/0.2701, allocations: 1.434 MB / 444.6 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2701, allocations: 0 / 444.6 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004066/0.2705, allocations: 99.81 kB / 444.7 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.2705, allocations: 3.938 kB / 444.7 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.848e-05/0.2705, allocations: 15.94 kB / 444.7 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.2705, allocations: 8 kB / 444.7 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2706, allocations: 4.031 kB / 444.7 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.2718, allocations: 0.7758 MB / 445.5 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003082/0.2721, allocations: 271.5 kB / 445.7 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000105/0.2722, allocations: 19.92 kB / 445.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003235/0.2725, allocations: 15.98 kB / 445.8 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.205e-05/0.2726, allocations: 31.91 kB / 445.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.373e-05/0.2726, allocations: 15.98 kB / 445.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001336/0.274, allocations: 1.314 MB / 447.1 MB, free: 8.988 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.274, allocations: 0 / 447.1 MB, free: 8.988 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009328/0.2749, allocations: 392 kB / 447.5 MB, free: 8.605 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.001457/0.2764, allocations: 0.7054 MB / 448.2 MB, free: 8.203 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002984/0.2794, allocations: 1.812 MB / 450 MB, free: 6.395 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.2794, allocations: 0 / 450 MB, free: 6.395 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003446/0.2797, allocations: 195.7 kB / 450.2 MB, free: 6.203 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009396/0.2807, allocations: 210.2 kB / 450.4 MB, free: 6.016 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003138/0.2838, allocations: 2.553 MB / 453 MB, free: 3.426 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007357/0.2846, allocations: 1.197 MB / 454.2 MB, free: 2.199 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007119/0.2853, allocations: 385.1 kB / 454.6 MB, free: 1.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.2855, allocations: 63.42 kB / 454.6 MB, free: 1.758 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2855, allocations: 0 / 454.6 MB, free: 1.758 MB / 318.1 MB Notification: Performance of Templates: time 0.01784/0.3033, allocations: 11.54 MB / 466.2 MB, free: 6.336 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)