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.001158/0.001158, allocations: 105.8 kB / 16.41 MB, free: 6.465 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.001065/0.001065, allocations: 187 kB / 17.34 MB, free: 5.719 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/package.mo): time 0.008287/0.008287, allocations: 1.297 MB / 292.5 MB, free: 13.46 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 63.89 kB / 404.1 MB, free: 31.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08739/0.08857, allocations: 49.72 MB / 453.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration): time 0.006985/0.09561, allocations: 4.514 MB / 458.3 MB, free: 9.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006049/0.1017, allocations: 3.53 MB / 461.8 MB, free: 5.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008371/0.1026, allocations: 23.88 kB / 461.9 MB, free: 5.449 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003064/0.1057, allocations: 1.152 MB / 463 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001317/0.107, allocations: 449.4 kB / 463.5 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001294/0.1083, allocations: 398.9 kB / 463.8 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001449/0.1098, allocations: 0.9238 MB / 464.8 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005899/0.1104, allocations: 275.4 kB / 465 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007484/0.1111, allocations: 398.3 kB / 465.4 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009469/0.1121, allocations: 0.4905 MB / 465.9 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001727/0.1123, allocations: 60 kB / 466 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004506/0.1127, allocations: 175.9 kB / 466.1 MB, free: 1.141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000373/0.1131, allocations: 356.3 kB / 466.5 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005902/0.1137, allocations: 0.5005 MB / 467 MB, free: 296 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001715/0.1155, allocations: 1.304 MB / 468.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1155, allocations: 0 / 468.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.1155, allocations: 0 / 468.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.5e-05/0.1155, allocations: 0 / 468.3 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.00249/0.118, allocations: 1.545 MB / 469.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.1181, allocations: 8.031 kB / 469.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002194/0.1183, allocations: 142.5 kB / 470 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001566/0.1199, allocations: 1.105 MB / 471.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.403e-05/0.1199, allocations: 33 kB / 471.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.531e-05/0.12, allocations: 40 kB / 471.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008021/0.1208, allocations: 485.4 kB / 471.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.446e-05/0.1208, allocations: 7.906 kB / 471.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.97e-05/0.1209, allocations: 16 kB / 471.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.1209, allocations: 11.94 kB / 471.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007052/0.1216, allocations: 339.7 kB / 472 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003163/0.1248, allocations: 2.136 MB / 474.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008764/0.1257, allocations: 455.8 kB / 474.6 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004078/0.1261, allocations: 197.4 kB / 474.8 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.408e-05/0.1262, allocations: 4.328 kB / 474.8 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004611/0.1267, allocations: 224.1 kB / 475 MB, free: 8.012 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.815e-06/0.1267, allocations: 0 / 475 MB, free: 8.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.003647/0.1303, allocations: 1.713 MB / 476.7 MB, free: 6.199 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.084e-05/0.1304, allocations: 110.8 kB / 476.8 MB, free: 6.066 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002316/0.1327, allocations: 1.999 MB / 478.8 MB, free: 4.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.1e-05/0.1328, allocations: 37.7 kB / 478.9 MB, free: 4.004 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004403/0.1333, allocations: 496.7 kB / 479.4 MB, free: 3.512 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001353/0.1334, allocations: 173.7 kB / 479.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003369/0.1337, allocations: 274.6 kB / 479.8 MB, free: 3.062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1339, allocations: 353.9 kB / 480.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007642/0.1347, allocations: 0.5448 MB / 480.7 MB, free: 2.164 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008793/0.1356, allocations: 0.6801 MB / 481.4 MB, free: 1.445 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/0.1368, allocations: 0.8626 MB / 482.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.1368, allocations: 7.938 kB / 482.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=147) (initialization): time 0.002253/0.1391, allocations: 1.515 MB / 483.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.1391, allocations: 4 kB / 483.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.1392, allocations: 7.938 kB / 483.8 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002008/0.1394, allocations: 32.84 kB / 483.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/0.1406, allocations: 355.7 kB / 484.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002929/0.1435, allocations: 3.543 MB / 487.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007001/0.1443, allocations: 43.89 kB / 487.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-05/0.1443, allocations: 36 kB / 487.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001228/0.1456, allocations: 0.8741 MB / 488.6 MB, free: 9.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000818/0.1464, allocations: 0.6762 MB / 489.3 MB, free: 9.105 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001168/0.1476, allocations: 0.839 MB / 490.1 MB, free: 8.238 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.083e-06/0.1476, allocations: 7.938 kB / 490.2 MB, free: 8.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=147) (initialization_lambda0): time 0.002185/0.1498, allocations: 1.48 MB / 491.6 MB, free: 6.738 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.1498, allocations: 8 kB / 491.6 MB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1498, allocations: 4 kB / 491.6 MB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001442/0.15, allocations: 41.11 kB / 491.7 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000871/0.1509, allocations: 263.5 kB / 491.9 MB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001357/0.1522, allocations: 1.974 MB / 493.9 MB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005686/0.1528, allocations: 40.17 kB / 494 MB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.401e-05/0.1529, allocations: 39.94 kB / 494 MB, free: 4.203 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.000278/0.1532, allocations: 241.3 kB / 494.2 MB, free: 3.961 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001618/0.1533, allocations: 122.4 kB / 494.4 MB, free: 3.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009986/0.1544, allocations: 0.4941 MB / 494.8 MB, free: 3.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1544, allocations: 4 kB / 494.8 MB, free: 3.336 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.1544, allocations: 0 / 494.8 MB, free: 3.336 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.1544, allocations: 4 kB / 494.9 MB, free: 3.332 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002089/0.1565, allocations: 1.427 MB / 496.3 MB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.1565, allocations: 0 / 496.3 MB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004316/0.1569, allocations: 95.88 kB / 496.4 MB, free: 1.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.157, allocations: 4 kB / 496.4 MB, free: 1.727 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.475e-05/0.157, allocations: 15.94 kB / 496.4 MB, free: 1.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.987e-06/0.157, allocations: 7.984 kB / 496.4 MB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.157, allocations: 11.88 kB / 496.4 MB, free: 1.691 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001339/0.1584, allocations: 0.7816 MB / 497.2 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000441/0.1588, allocations: 267.6 kB / 497.5 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.1589, allocations: 7.938 kB / 497.5 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003367/0.1593, allocations: 27.98 kB / 497.5 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.448e-05/0.1594, allocations: 27.95 kB / 497.5 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.596e-05/0.1594, allocations: 16 kB / 497.5 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001666/0.1611, allocations: 1.307 MB / 498.8 MB, free: 15.22 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1611, allocations: 4 kB / 498.8 MB, free: 15.22 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001098/0.1622, allocations: 395.9 kB / 499.2 MB, free: 14.83 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.00165/0.1639, allocations: 0.7164 MB / 499.9 MB, free: 14.42 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003238/0.1671, allocations: 1.749 MB / 0.4899 GB, free: 12.67 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.1671, allocations: 0.6875 kB / 0.4899 GB, free: 12.67 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004018/0.1676, allocations: 203.5 kB / 0.4901 GB, free: 12.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.1688, allocations: 205.8 kB / 0.4903 GB, free: 12.28 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003818/0.1726, allocations: 2.413 MB / 0.4927 GB, free: 9.828 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006959/0.1734, allocations: 1.139 MB / 0.4938 GB, free: 8.664 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002374/0.1736, allocations: 63.42 kB / 0.4939 GB, free: 8.602 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.1736, allocations: 0 / 0.4939 GB, free: 8.602 MB / 382.1 MB Notification: Performance of Templates: time 0.2397/0.4133, allocations: 20.3 MB / 0.5137 GB, free: 50.96 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)