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-main/package.mo", uses=false) Using package Credibility with version 0.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.2.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.001146/0.001146, 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.001077/0.001077, allocations: 191.9 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.299/1.299, allocations: 222.9 MB / 240.2 MB, free: 4.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.2.0-main/package.mo): time 0.008196/0.008196, allocations: 1.298 MB / 291.7 MB, free: 0.8633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 71.89 kB / 352.4 MB, free: 6.562 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07906/0.08029, allocations: 49.73 MB / 402.1 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_forCalibration): time 0.005886/0.08622, allocations: 4.501 MB / 406.6 MB, free: 272 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004748/0.09099, allocations: 3.537 MB / 410.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003477/0.09136, allocations: 23.88 kB / 410.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002098/0.09349, allocations: 1.148 MB / 411.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007187/0.09422, allocations: 449.8 kB / 411.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008081/0.09504, allocations: 398.6 kB / 412.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008329/0.09589, allocations: 0.9199 MB / 413.1 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003891/0.09629, allocations: 287.3 kB / 413.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004016/0.0967, allocations: 386.4 kB / 413.7 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005111/0.09722, allocations: 498.3 kB / 414.2 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.398e-05/0.09732, allocations: 64 kB / 414.3 MB, free: 8.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002878/0.09762, allocations: 168 kB / 414.5 MB, free: 8.402 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002848/0.09791, allocations: 356.3 kB / 414.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003748/0.09829, allocations: 0.5005 MB / 415.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001091/0.09939, allocations: 1.277 MB / 416.6 MB, free: 6.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.0994, allocations: 0 / 416.6 MB, free: 6.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.09942, allocations: 8 kB / 416.6 MB, free: 6.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.09944, allocations: 0 / 416.6 MB, free: 6.262 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.002097/0.1015, allocations: 1.541 MB / 418.1 MB, free: 4.664 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.1016, allocations: 12.03 kB / 418.1 MB, free: 4.652 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001822/0.1018, allocations: 142.5 kB / 418.3 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/0.103, allocations: 1.085 MB / 419.4 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.71e-05/0.1031, allocations: 29 kB / 419.4 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.38e-05/0.1031, allocations: 51.91 kB / 419.5 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008236/0.104, allocations: 473.5 kB / 419.9 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.104, allocations: 4 kB / 419.9 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.228e-05/0.104, allocations: 20 kB / 419.9 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.1041, allocations: 15.88 kB / 420 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007425/0.1048, allocations: 339.7 kB / 420.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002716/0.1075, allocations: 2.148 MB / 422.4 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1322/0.2398, allocations: 452.5 kB / 422.9 MB, free: 52.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004483/0.2403, allocations: 199.7 kB / 423.1 MB, free: 52.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.032e-05/0.2403, allocations: 8.547 kB / 423.1 MB, free: 52.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004834/0.2408, allocations: 216.3 kB / 423.3 MB, free: 52.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.725e-06/0.2408, allocations: 0 / 423.3 MB, free: 52.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.002948/0.2438, allocations: 1.713 MB / 425 MB, free: 51.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.2438, allocations: 115.8 kB / 425.1 MB, free: 51.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001688/0.2455, allocations: 2.001 MB / 427.1 MB, free: 50.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.2455, allocations: 32.89 kB / 427.1 MB, free: 50.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002661/0.2458, allocations: 491.4 kB / 427.6 MB, free: 50.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.621e-05/0.2459, allocations: 175.4 kB / 427.8 MB, free: 50.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002542/0.2462, allocations: 278.9 kB / 428.1 MB, free: 49.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.73e-05/0.2462, allocations: 355.6 kB / 428.4 MB, free: 49.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006369/0.2469, allocations: 0.5421 MB / 429 MB, free: 49.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006842/0.2476, allocations: 0.6863 MB / 429.6 MB, free: 49.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/0.2486, allocations: 0.8629 MB / 430.5 MB, free: 48.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.2486, allocations: 2.875 kB / 430.5 MB, free: 48.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=147) (initialization): time 0.001783/0.2504, allocations: 1.499 MB / 432 MB, free: 48.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.2504, allocations: 10.09 kB / 432 MB, free: 48.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.2504, allocations: 6.781 kB / 432 MB, free: 48.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000151/0.2506, allocations: 37.58 kB / 432.1 MB, free: 48.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/0.2518, allocations: 355.3 kB / 432.4 MB, free: 48.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00196/0.2537, allocations: 3.545 MB / 436 MB, free: 44.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004394/0.2542, allocations: 38.7 kB / 436 MB, free: 44.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-05/0.2543, allocations: 39.06 kB / 436 MB, free: 44.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009049/0.2552, allocations: 0.8814 MB / 436.9 MB, free: 44.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006596/0.2558, allocations: 0.6761 MB / 437.6 MB, free: 44.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009198/0.2568, allocations: 0.8354 MB / 438.4 MB, free: 43.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.465e-06/0.2568, allocations: 0 / 438.4 MB, free: 43.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=147) (initialization_lambda0): time 0.00164/0.2584, allocations: 1.484 MB / 439.9 MB, free: 43.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.908e-06/0.2584, allocations: 5.719 kB / 439.9 MB, free: 43.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.2585, allocations: 7.469 kB / 439.9 MB, free: 43.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001146/0.2586, allocations: 39.45 kB / 440 MB, free: 43.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007941/0.2594, allocations: 264.2 kB / 440.2 MB, free: 43.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007605/0.2601, allocations: 1.983 MB / 442.2 MB, free: 41.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004097/0.2606, allocations: 32.12 kB / 442.2 MB, free: 41.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.843e-05/0.2606, allocations: 41.34 kB / 442.3 MB, free: 41.29 MB / 350.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.0001485/0.2608, allocations: 235.9 kB / 442.5 MB, free: 41.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.2609, allocations: 125.3 kB / 442.6 MB, free: 41.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008452/0.2618, allocations: 0.4938 MB / 443.1 MB, free: 40.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.2618, allocations: 3.25 kB / 443.1 MB, free: 40.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.2618, allocations: 3.797 kB / 443.1 MB, free: 40.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.2618, allocations: 5.344 kB / 443.1 MB, free: 40.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001574/0.2634, allocations: 1.432 MB / 444.6 MB, free: 40.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.2634, allocations: 0 / 444.6 MB, free: 40.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004144/0.2638, allocations: 99.89 kB / 444.7 MB, free: 40.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.2638, allocations: 8.562 kB / 444.7 MB, free: 40.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.566e-05/0.2638, allocations: 7.156 kB / 444.7 MB, free: 40.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.2639, allocations: 3.219 kB / 444.7 MB, free: 40.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2639, allocations: 4.031 kB / 444.7 MB, free: 40.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.2649, allocations: 0.7849 MB / 445.5 MB, free: 39.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002526/0.2652, allocations: 266.1 kB / 445.7 MB, free: 39.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.2653, allocations: 17.62 kB / 445.7 MB, free: 39.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003308/0.2656, allocations: 19.75 kB / 445.8 MB, free: 39.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.288e-05/0.2657, allocations: 29.86 kB / 445.8 MB, free: 39.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/0.2657, allocations: 13.34 kB / 445.8 MB, free: 39.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001093/0.2668, allocations: 1.307 MB / 447.1 MB, free: 38.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.2668, allocations: 3.219 kB / 447.1 MB, free: 38.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008496/0.2677, allocations: 398 kB / 447.5 MB, free: 38.88 MB / 350.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.001437/0.2691, allocations: 0.7111 MB / 448.2 MB, free: 38.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002804/0.272, allocations: 1.811 MB / 450 MB, free: 38.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.272, allocations: 0 / 450 MB, free: 38.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003225/0.2723, allocations: 192.8 kB / 450.2 MB, free: 38.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009168/0.2732, allocations: 212.3 kB / 450.4 MB, free: 38.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002717/0.276, allocations: 2.552 MB / 453 MB, free: 36.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005032/0.2765, allocations: 1.203 MB / 454.2 MB, free: 35.96 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000654/0.2771, allocations: 384.2 kB / 454.6 MB, free: 35.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001523/0.2773, allocations: 62.92 kB / 454.6 MB, free: 35.91 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2773, allocations: 3 kB / 454.6 MB, free: 35.91 MB / 350.1 MB Notification: Performance of Templates: time 0.01821/0.2955, allocations: 11.54 MB / 466.2 MB, free: 35 MB / 350.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)