Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.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: "" <> buildModelFMU(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original,fileNamePrefix="Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleControlledDrive_original",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original,fileNamePrefix="Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleControlledDrive_original",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 108 kB / 15.6 MB, free: 128 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.001045/0.001045, allocations: 196 kB / 16.53 MB, free: 6.672 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.34/1.34, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.01928/0.01928, allocations: 1.297 MB / 291.7 MB, free: 0.9883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 63.91 kB / 352.5 MB, free: 1.508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2579, allocations: 49.71 MB / 402.2 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original): time 0.004806/0.2627, allocations: 4.203 MB / 406.4 MB, free: 7.68 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003494/0.2662, allocations: 2.621 MB / 409.1 MB, free: 5.855 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003077/0.2666, allocations: 16.81 kB / 409.1 MB, free: 5.852 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002255/0.2688, allocations: 1.113 MB / 410.2 MB, free: 5.547 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006723/0.2695, allocations: 405.8 kB / 410.6 MB, free: 5.367 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007589/0.2703, allocations: 318.9 kB / 410.9 MB, free: 5.195 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001013/0.2713, allocations: 0.8671 MB / 411.8 MB, free: 4.773 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004316/0.2717, allocations: 242.6 kB / 412 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004045/0.2722, allocations: 359.5 kB / 412.3 MB, free: 4.473 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004424/0.2726, allocations: 466.2 kB / 412.8 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.668e-05/0.2727, allocations: 58.59 kB / 412.9 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002415/0.273, allocations: 109.4 kB / 413 MB, free: 4.277 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000292/0.2733, allocations: 352.4 kB / 413.3 MB, free: 4.125 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003415/0.2736, allocations: 0.5395 MB / 413.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001209/0.2748, allocations: 1.351 MB / 415.2 MB, free: 3.137 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.2748, allocations: 1.219 kB / 415.2 MB, free: 3.137 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2748, allocations: 0.75 kB / 415.2 MB, free: 3.137 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.803e-05/0.2749, allocations: 0 / 415.2 MB, free: 3.137 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.002373/0.2772, allocations: 1.655 MB / 416.9 MB, free: 2.027 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.2773, allocations: 13.98 kB / 416.9 MB, free: 2.023 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.733e-05/0.2774, allocations: 77.86 kB / 416.9 MB, free: 1.961 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/0.2776, allocations: 143.7 kB / 417.1 MB, free: 1.883 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009318/0.2869, allocations: 10.69 MB / 427.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.157e-05/0.287, allocations: 41.2 kB / 427.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-05/0.287, allocations: 42.38 kB / 427.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009512/0.288, allocations: 492.8 kB / 428.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.288, allocations: 13.05 kB / 428.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.974e-05/0.2881, allocations: 15.84 kB / 428.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.2881, allocations: 15.34 kB / 428.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.2892, allocations: 420.9 kB / 428.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004529/0.2937, allocations: 4.564 MB / 433.4 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/0.2947, allocations: 476.6 kB / 433.8 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005355/0.2953, allocations: 200.7 kB / 434 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.589e-05/0.2953, allocations: 4 kB / 434 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/0.2954, allocations: 42.5 kB / 434.1 MB, free: 7.035 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 3.937e-06/0.2954, allocations: 3.984 kB / 434.1 MB, free: 7.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004003/0.2994, allocations: 1.751 MB / 435.8 MB, free: 5.188 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.846e-05/0.2995, allocations: 81.11 kB / 435.9 MB, free: 5.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01709/0.3166, allocations: 14.09 MB / 450 MB, free: 6.977 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.3167, allocations: 33.64 kB / 450 MB, free: 6.938 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007234/0.3174, allocations: 0.5722 MB / 450.6 MB, free: 6.363 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/0.3176, allocations: 145.8 kB / 450.7 MB, free: 6.219 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001576/0.3178, allocations: 94.14 kB / 450.8 MB, free: 6.121 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.3179, allocations: 322 kB / 451.1 MB, free: 5.801 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005434/0.3185, allocations: 195 kB / 451.3 MB, free: 5.609 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005524/0.319, allocations: 275 kB / 451.6 MB, free: 5.309 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.32, allocations: 453.5 kB / 452 MB, free: 4.832 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3201, allocations: 4 kB / 452.1 MB, free: 4.828 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001694/0.3218, allocations: 0.6341 MB / 452.7 MB, free: 4.184 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.3218, allocations: 11.98 kB / 452.7 MB, free: 4.172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.3218, allocations: 0 / 452.7 MB, free: 4.172 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001735/0.322, allocations: 36.78 kB / 452.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009007/0.3229, allocations: 215.8 kB / 452.9 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001988/0.3249, allocations: 2.121 MB / 455.1 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000853/0.3258, allocations: 43.97 kB / 455.1 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.763e-05/0.3258, allocations: 19.98 kB / 455.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001351/0.3272, allocations: 0.5206 MB / 455.6 MB, free: 1.051 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007326/0.3279, allocations: 266.9 kB / 455.9 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001284/0.3292, allocations: 421.6 kB / 456.3 MB, free: 324 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.574e-06/0.3292, allocations: 0 / 456.3 MB, free: 324 kB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.002079/0.3313, allocations: 0.6061 MB / 456.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.3314, allocations: 12.25 kB / 456.9 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3314, allocations: 0 / 456.9 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001722/0.3316, allocations: 44.7 kB / 457 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007044/0.3323, allocations: 127.8 kB / 457.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000422/0.3327, allocations: 0.5445 MB / 457.7 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008411/0.3336, allocations: 44 kB / 457.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.104e-05/0.3336, allocations: 19.94 kB / 457.7 MB, free: 14.88 MB / 334.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: 3 (kinematicPTP.noWphase,integrator.local_reset,speedController.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {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.0002308/0.3339, allocations: 212.4 kB / 457.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002901/0.3342, allocations: 126.4 kB / 458 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001789/0.336, allocations: 0.5333 MB / 458.6 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.336, allocations: 7.938 kB / 458.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.336, allocations: 0 / 458.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.928e-06/0.336, allocations: 7.984 kB / 458.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003641/0.3397, allocations: 1.567 MB / 460.2 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.3397, allocations: 4 kB / 460.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007476/0.3405, allocations: 103.9 kB / 460.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.355e-05/0.3405, allocations: 12.11 kB / 460.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.297e-05/0.3405, allocations: 11.94 kB / 460.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.794e-06/0.3406, allocations: 4 kB / 460.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.3406, allocations: 4 kB / 460.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002416/0.343, allocations: 0.8322 MB / 461.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006024/0.3436, allocations: 303.4 kB / 461.4 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/0.3438, allocations: 15.92 kB / 461.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006245/0.3444, allocations: 43.97 kB / 461.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.96e-05/0.3445, allocations: 27.95 kB / 461.5 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.029e-05/0.3446, allocations: 12 kB / 461.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0103/0.3549, allocations: 11.24 MB / 472.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.3549, allocations: 4 kB / 472.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001249/0.3562, allocations: 251.9 kB / 473 MB, free: 15.41 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (damper.phi_rel,damper.w_rel,inertiaLoad.w,speedController.I.y,integrator.y,torqueLoad.phi) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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.002844/0.359, allocations: 1.646 MB / 474.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002522/0.3616, allocations: 0.8138 MB / 475.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.3616, allocations: 4 kB / 475.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005118/0.3621, allocations: 207.6 kB / 475.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.3634, allocations: 206.8 kB / 475.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06365/0.427, allocations: 46.7 MB / 0.5103 GB, free: 13.51 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007112/0.4278, allocations: 1.165 MB / 0.5115 GB, free: 12.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000632/0.4284, allocations: 202 kB / 0.5117 GB, free: 12.12 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005595/0.429, allocations: 443.3 kB / 0.5121 GB, free: 11.68 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.429, allocations: 0 / 0.5121 GB, free: 11.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07008/0.4991, allocations: 30.58 MB / 0.542 GB, free: 13.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.6, allocations: 12.38 kB / 0.542 GB, free: 13.39 MB / 430.1 MB (rm -f Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.pipe ; mkfifo Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.pipe ; head -c 1048576 < Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.pipe >> ../files/Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.sim & python3 -m fmpy simulate --output-file Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleControlledDrive_original.fmu > Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.pipe 2>&1)