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.006069/0.006069, allocations: 104 kB / 15.74 MB, free: 6.059 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.001349/0.001349, allocations: 198.8 kB / 16.68 MB, free: 5.969 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/package.mo): time 0.00874/0.00874, allocations: 1.293 MB / 291.8 MB, free: 13.49 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 67.89 kB / 403.4 MB, free: 31.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1025, allocations: 49.72 MB / 453.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration): time 0.006973/0.1095, allocations: 4.514 MB / 457.6 MB, free: 9.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006638/0.1162, allocations: 3.53 MB / 461.2 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001362/0.1176, allocations: 19.88 kB / 461.2 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004236/0.1218, allocations: 1.152 MB / 462.3 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001558/0.1234, allocations: 457.5 kB / 462.8 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001305/0.1247, allocations: 402.5 kB / 463.2 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001488/0.1262, allocations: 0.9199 MB / 464.1 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005932/0.1268, allocations: 279.4 kB / 464.4 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007298/0.1276, allocations: 394.3 kB / 464.7 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007966/0.1284, allocations: 498.3 kB / 465.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001774/0.1286, allocations: 64 kB / 465.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004727/0.129, allocations: 175.9 kB / 465.5 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00039/0.1294, allocations: 356.4 kB / 465.8 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006185/0.1301, allocations: 0.5005 MB / 466.3 MB, free: 304 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001621/0.1317, allocations: 1.308 MB / 467.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1317, allocations: 0 / 467.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1317, allocations: 0 / 467.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.625e-05/0.1318, allocations: 0 / 467.6 MB, free: 14.98 MB / 350.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.002694/0.1345, allocations: 1.541 MB / 469.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.1345, allocations: 12.03 kB / 469.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002049/0.1347, allocations: 142.5 kB / 469.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001683/0.1364, allocations: 1.101 MB / 470.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.007e-05/0.1365, allocations: 29 kB / 470.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.936e-05/0.1366, allocations: 44 kB / 470.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007937/0.1374, allocations: 477.5 kB / 471 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.423e-05/0.1374, allocations: 3.906 kB / 471 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.851e-05/0.1374, allocations: 23.94 kB / 471 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.1375, allocations: 15.94 kB / 471 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006877/0.1381, allocations: 343.7 kB / 471.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002793/0.141, allocations: 2.136 MB / 473.5 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008249/0.1418, allocations: 455.5 kB / 473.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004026/0.1422, allocations: 197.4 kB / 474.1 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.274e-05/0.1423, allocations: 4.328 kB / 474.1 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004384/0.1427, allocations: 216 kB / 474.3 MB, free: 8.023 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.833e-06/0.1427, allocations: 0 / 474.3 MB, free: 8.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.003135/0.1459, allocations: 1.713 MB / 476 MB, free: 6.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.503e-05/0.1459, allocations: 118.8 kB / 476.2 MB, free: 6.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/0.1481, allocations: 1.999 MB / 478.2 MB, free: 4.051 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5e-05/0.1482, allocations: 37.7 kB / 478.2 MB, free: 4.008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000404/0.1486, allocations: 488.7 kB / 478.7 MB, free: 3.523 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.1487, allocations: 177.7 kB / 478.8 MB, free: 3.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003412/0.1491, allocations: 274.6 kB / 479.1 MB, free: 3.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.1492, allocations: 357.9 kB / 479.5 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007856/0.15, allocations: 0.5408 MB / 480 MB, free: 2.172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008926/0.1509, allocations: 0.6839 MB / 480.7 MB, free: 1.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/0.1521, allocations: 0.8704 MB / 481.6 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1522, allocations: 3.938 kB / 481.6 MB, free: 0.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=147) (initialization): time 0.002202/0.1544, allocations: 1.504 MB / 483.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.1544, allocations: 8 kB / 483.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.1544, allocations: 7.938 kB / 483.1 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002214/0.1546, allocations: 36.78 kB / 483.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.1559, allocations: 351.8 kB / 483.5 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002933/0.1588, allocations: 3.547 MB / 487 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005315/0.1594, allocations: 43.89 kB / 487 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.313e-05/0.1595, allocations: 40 kB / 487.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001248/0.1607, allocations: 0.8741 MB / 488 MB, free: 9.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008487/0.1616, allocations: 0.6684 MB / 488.6 MB, free: 9.113 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001237/0.1628, allocations: 0.8467 MB / 489.5 MB, free: 8.238 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.661e-06/0.1628, allocations: 3.938 kB / 489.5 MB, free: 8.234 MB / 366.1 MB Notification: Performance of matching and sorting (n=147) (initialization_lambda0): time 0.002128/0.165, allocations: 1.473 MB / 490.9 MB, free: 6.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.165, allocations: 8 kB / 491 MB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.165, allocations: 3.984 kB / 491 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001338/0.1651, allocations: 41.11 kB / 491 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008596/0.166, allocations: 267.6 kB / 491.3 MB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001349/0.1674, allocations: 1.974 MB / 493.2 MB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004445/0.1678, allocations: 48.14 kB / 493.3 MB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.953e-05/0.1679, allocations: 36 kB / 493.3 MB, free: 4.207 MB / 366.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.0002339/0.1681, allocations: 237.3 kB / 493.5 MB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.1683, allocations: 126.4 kB / 493.7 MB, free: 3.844 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001049/0.1693, allocations: 0.4903 MB / 494.2 MB, free: 3.348 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.1694, allocations: 4 kB / 494.2 MB, free: 3.344 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.1694, allocations: 4 kB / 494.2 MB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.1694, allocations: 0 / 494.2 MB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002085/0.1715, allocations: 1.431 MB / 495.6 MB, free: 1.828 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1715, allocations: 0 / 495.6 MB, free: 1.828 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004261/0.1719, allocations: 99.88 kB / 495.7 MB, free: 1.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.1719, allocations: 4 kB / 495.7 MB, free: 1.727 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.545e-05/0.172, allocations: 11.94 kB / 495.7 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.172, allocations: 0 / 495.7 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.172, allocations: 3.938 kB / 495.7 MB, free: 1.711 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/0.1733, allocations: 0.7933 MB / 496.5 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003158/0.1736, allocations: 263.6 kB / 496.8 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.218e-05/0.1737, allocations: 15.94 kB / 496.8 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000317/0.1741, allocations: 23.98 kB / 496.8 MB, free: 0.582 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.668e-05/0.1742, allocations: 31.94 kB / 496.8 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.752e-05/0.1742, allocations: 16 kB / 496.9 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001496/0.1757, allocations: 1.307 MB / 498.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1757, allocations: 0 / 498.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009998/0.1767, allocations: 399.9 kB / 498.6 MB, free: 14.84 MB / 382.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.001728/0.1784, allocations: 0.711 MB / 499.3 MB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003182/0.1816, allocations: 1.784 MB / 0.4893 GB, free: 12.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1816, allocations: 0 / 0.4893 GB, free: 12.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003818/0.182, allocations: 195.5 kB / 0.4895 GB, free: 12.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009665/0.183, allocations: 204.8 kB / 0.4897 GB, free: 12.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003559/0.1866, allocations: 2.525 MB / 0.4922 GB, free: 9.703 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007937/0.1874, allocations: 1.193 MB / 0.4933 GB, free: 8.484 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007759/0.1882, allocations: 389.2 kB / 0.4937 GB, free: 8.102 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001722/0.1884, allocations: 63.42 kB / 0.4937 GB, free: 8.039 MB / 382.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1884, allocations: 0 / 0.4937 GB, free: 8.039 MB / 382.1 MB Notification: Performance of Templates: time 0.2323/0.4206, allocations: 11.66 MB / 0.5051 GB, free: 54.16 MB / 382.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)