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.005227/0.005227, allocations: 103.6 kB / 15.74 MB, free: 6.035 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.001123/0.001123, allocations: 196.6 kB / 16.68 MB, free: 5.953 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.2.0-alpha.1/package.mo): time 0.008848/0.008848, allocations: 1.299 MB / 291.8 MB, free: 13.5 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 59.89 kB / 403.4 MB, free: 31.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1123, allocations: 49.72 MB / 453.1 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration): time 0.006714/0.1191, allocations: 4.514 MB / 457.6 MB, free: 9.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006869/0.126, allocations: 3.538 MB / 461.2 MB, free: 5.492 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007972/0.1268, allocations: 23.88 kB / 461.2 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003028/0.1299, allocations: 1.172 MB / 462.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001119/0.131, allocations: 461.5 kB / 462.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001307/0.1323, allocations: 410.8 kB / 463.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001213/0.1336, allocations: 0.9238 MB / 464.1 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004977/0.1341, allocations: 271.4 kB / 464.4 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005839/0.1347, allocations: 402.3 kB / 464.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006421/0.1353, allocations: 498.3 kB / 465.3 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001029/0.1354, allocations: 60 kB / 465.3 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004204/0.1359, allocations: 171.9 kB / 465.5 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004254/0.1363, allocations: 356.4 kB / 465.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005449/0.1369, allocations: 0.5005 MB / 466.4 MB, free: 280 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001901/0.1388, allocations: 1.308 MB / 467.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.1388, allocations: 0 / 467.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1388, allocations: 0 / 467.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.373e-05/0.1388, allocations: 0 / 467.7 MB, free: 14.96 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.002498/0.1413, allocations: 1.543 MB / 469.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.1414, allocations: 12.03 kB / 469.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003116/0.1417, allocations: 142.5 kB / 469.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001547/0.1432, allocations: 1.105 MB / 470.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.313e-05/0.1433, allocations: 33 kB / 470.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.731e-05/0.1434, allocations: 40 kB / 470.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008886/0.1443, allocations: 481.5 kB / 471 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/0.1443, allocations: 3.906 kB / 471 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.144e-05/0.1443, allocations: 16 kB / 471 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.1444, allocations: 15.94 kB / 471 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007572/0.1451, allocations: 339.7 kB / 471.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003583/0.1487, allocations: 2.144 MB / 473.5 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009042/0.1497, allocations: 455.4 kB / 474 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004115/0.1501, allocations: 199.9 kB / 474.2 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.439e-05/0.1501, allocations: 4.328 kB / 474.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004689/0.1506, allocations: 216 kB / 474.4 MB, free: 8.004 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 3.497e-06/0.1506, allocations: 0 / 474.4 MB, free: 8.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.003613/0.1543, allocations: 1.717 MB / 476.1 MB, free: 6.188 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.044e-05/0.1544, allocations: 114.8 kB / 476.2 MB, free: 6.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003048/0.1574, allocations: 1.999 MB / 478.2 MB, free: 4.031 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.004e-05/0.1575, allocations: 37.7 kB / 478.2 MB, free: 3.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005294/0.1581, allocations: 488.7 kB / 478.7 MB, free: 3.504 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/0.1583, allocations: 181.7 kB / 478.9 MB, free: 3.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000406/0.1587, allocations: 270.6 kB / 479.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.1588, allocations: 357.9 kB / 479.5 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008711/0.1597, allocations: 0.5408 MB / 480 MB, free: 2.152 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009343/0.1607, allocations: 0.6878 MB / 480.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001566/0.1622, allocations: 0.8665 MB / 481.6 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.1623, allocations: 4 kB / 481.6 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of matching and sorting (n=147) (initialization): time 0.002685/0.1649, allocations: 1.504 MB / 483.1 MB, free: 15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/0.165, allocations: 4 kB / 483.1 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.005e-05/0.165, allocations: 7.938 kB / 483.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000214/0.1652, allocations: 40.77 kB / 483.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/0.1666, allocations: 347.6 kB / 483.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003614/0.1703, allocations: 3.551 MB / 487 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007373/0.171, allocations: 43.89 kB / 487.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.1711, allocations: 36 kB / 487.1 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001565/0.1727, allocations: 0.8741 MB / 488 MB, free: 9.801 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001063/0.1738, allocations: 0.6723 MB / 488.7 MB, free: 9.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001348/0.1751, allocations: 0.8428 MB / 489.5 MB, free: 8.219 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.923e-06/0.1752, allocations: 3.938 kB / 489.5 MB, free: 8.215 MB / 366.1 MB Notification: Performance of matching and sorting (n=147) (initialization_lambda0): time 0.002494/0.1777, allocations: 1.48 MB / 491 MB, free: 6.727 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.1777, allocations: 8 kB / 491 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.1777, allocations: 0 / 491 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001588/0.1779, allocations: 41.11 kB / 491 MB, free: 6.676 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009148/0.1788, allocations: 263.6 kB / 491.3 MB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/0.1803, allocations: 1.986 MB / 493.3 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006545/0.181, allocations: 36.17 kB / 493.3 MB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-05/0.1811, allocations: 40 kB / 493.4 MB, free: 4.188 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.0003443/0.1815, allocations: 241.3 kB / 493.6 MB, free: 3.945 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002514/0.1817, allocations: 126.4 kB / 493.7 MB, free: 3.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001112/0.1828, allocations: 498 kB / 494.2 MB, free: 3.328 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.1829, allocations: 8 kB / 494.2 MB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.1829, allocations: 0 / 494.2 MB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1829, allocations: 0 / 494.2 MB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002466/0.1854, allocations: 1.427 MB / 495.6 MB, free: 1.812 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.1854, allocations: 4 kB / 495.6 MB, free: 1.809 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004536/0.1858, allocations: 103.8 kB / 495.8 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.087e-06/0.1859, allocations: 4 kB / 495.8 MB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.35e-05/0.1859, allocations: 19.88 kB / 495.8 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.1859, allocations: 0 / 495.8 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1859, allocations: 0 / 495.8 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/0.1873, allocations: 0.7893 MB / 496.6 MB, free: 0.875 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004588/0.1878, allocations: 267.6 kB / 496.8 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001515/0.188, allocations: 11.94 kB / 496.8 MB, free: 0.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003709/0.1884, allocations: 23.98 kB / 496.9 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.159e-05/0.1885, allocations: 31.95 kB / 496.9 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.224e-05/0.1885, allocations: 16 kB / 496.9 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001819/0.1903, allocations: 1.307 MB / 498.2 MB, free: 15.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1903, allocations: 0 / 498.2 MB, free: 15.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001373/0.1917, allocations: 395.9 kB / 498.6 MB, free: 14.81 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.001973/0.1937, allocations: 0.7135 MB / 499.3 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00385/0.1976, allocations: 1.78 MB / 0.4893 GB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.1976, allocations: 0 / 0.4893 GB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004297/0.198, allocations: 195.5 kB / 0.4895 GB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001364/0.1994, allocations: 200.9 kB / 0.4897 GB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004677/0.2041, allocations: 2.533 MB / 0.4922 GB, free: 9.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001191/0.2053, allocations: 1.189 MB / 0.4934 GB, free: 8.461 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009801/0.2063, allocations: 385.2 kB / 0.4937 GB, free: 8.082 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002031/0.2065, allocations: 63.42 kB / 0.4938 GB, free: 8.02 MB / 382.1 MB Notification: Performance of SimCode: time 3.236e-06/0.2065, allocations: 0 / 0.4938 GB, free: 8.02 MB / 382.1 MB Notification: Performance of Templates: time 0.2689/0.4755, allocations: 11.66 MB / 0.5052 GB, free: 54.23 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)