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.005924/0.005923, allocations: 98.95 kB / 15.73 MB, free: 6.055 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.001127/0.001127, allocations: 201.8 kB / 16.68 MB, free: 5.977 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.01654/0.01654, allocations: 1.288 MB / 291.8 MB, free: 0.918 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002366/0.002366, allocations: 63.89 kB / 402.9 MB, free: 4.105 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2682, allocations: 49.71 MB / 452.6 MB, free: 21.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original): time 0.004466/0.2727, allocations: 4.21 MB / 456.8 MB, free: 18.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0032/0.2759, allocations: 2.621 MB / 459.4 MB, free: 17.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003387/0.2763, allocations: 23.41 kB / 459.5 MB, free: 17.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001847/0.2782, allocations: 1.133 MB / 460.6 MB, free: 16.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005739/0.2787, allocations: 417.8 kB / 461 MB, free: 16.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006008/0.2794, allocations: 328.7 kB / 461.3 MB, free: 16.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006065/0.28, allocations: 0.8579 MB / 462.2 MB, free: 16.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002989/0.2803, allocations: 237.5 kB / 462.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002761/0.2806, allocations: 375.8 kB / 462.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004092/0.281, allocations: 459.2 kB / 463.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.188e-05/0.2811, allocations: 58.69 kB / 463.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002041/0.2813, allocations: 116.6 kB / 463.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002242/0.2815, allocations: 350 kB / 463.7 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003416/0.2819, allocations: 0.5395 MB / 464.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001402/0.2833, allocations: 1.387 MB / 465.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2833, allocations: 0 / 465.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2833, allocations: 1.438 kB / 465.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.211e-05/0.2833, allocations: 4 kB / 465.7 MB, free: 14.36 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.002536/0.2859, allocations: 1.693 MB / 467.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.2859, allocations: 13.61 kB / 467.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.883e-05/0.286, allocations: 82.67 kB / 467.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001981/0.2862, allocations: 151.8 kB / 467.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009295/0.2955, allocations: 10.72 MB / 478.3 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.44e-05/0.2956, allocations: 29.84 kB / 478.4 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.388e-05/0.2956, allocations: 43.42 kB / 478.4 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009603/0.2966, allocations: 495.3 kB / 478.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.2966, allocations: 6.203 kB / 478.9 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.604e-05/0.2967, allocations: 16.38 kB / 478.9 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.2967, allocations: 14.31 kB / 478.9 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.2978, allocations: 419.3 kB / 479.3 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004556/0.3023, allocations: 4.568 MB / 483.9 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/0.3034, allocations: 484.8 kB / 484.4 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005219/0.3039, allocations: 201.8 kB / 484.6 MB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.853e-05/0.3039, allocations: 6.047 kB / 484.6 MB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.684e-05/0.304, allocations: 36.72 kB / 484.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.014e-06/0.304, allocations: 0 / 484.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003828/0.3078, allocations: 1.776 MB / 486.4 MB, free: 4.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.3079, allocations: 82.47 kB / 486.5 MB, free: 4.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01163/0.3195, allocations: 14.09 MB / 0.4888 GB, free: 7.512 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.915e-05/0.3196, allocations: 33.7 kB / 0.4889 GB, free: 7.473 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004806/0.3201, allocations: 0.5766 MB / 0.4894 GB, free: 6.895 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.3203, allocations: 146.8 kB / 0.4896 GB, free: 6.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001515/0.3204, allocations: 90.2 kB / 0.4897 GB, free: 6.656 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.3205, allocations: 330 kB / 0.49 GB, free: 6.328 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00051/0.321, allocations: 183 kB / 0.4901 GB, free: 6.145 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005467/0.3216, allocations: 286.8 kB / 0.4904 GB, free: 5.836 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009687/0.3226, allocations: 441.6 kB / 0.4908 GB, free: 5.371 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3226, allocations: 0 / 0.4908 GB, free: 5.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001666/0.3243, allocations: 0.6419 MB / 0.4915 GB, free: 4.719 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.3243, allocations: 12.03 kB / 0.4915 GB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.3243, allocations: 4 kB / 0.4915 GB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001782/0.3245, allocations: 44.7 kB / 0.4915 GB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008946/0.3254, allocations: 211.7 kB / 0.4917 GB, free: 4.449 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001824/0.3272, allocations: 2.109 MB / 0.4938 GB, free: 2.176 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006871/0.3279, allocations: 52.08 kB / 0.4938 GB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.328, allocations: 20 kB / 0.4939 GB, free: 2.105 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000908/0.3289, allocations: 0.5142 MB / 0.4944 GB, free: 1.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004957/0.3294, allocations: 263.2 kB / 0.4946 GB, free: 1.305 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008759/0.3303, allocations: 433.5 kB / 0.495 GB, free: 0.8516 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.743e-06/0.3303, allocations: 0 / 0.495 GB, free: 0.8516 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.001389/0.3317, allocations: 0.6261 MB / 0.4956 GB, free: 220 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.3317, allocations: 4 kB / 0.4956 GB, free: 216 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.3317, allocations: 4 kB / 0.4956 GB, free: 212 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001231/0.3319, allocations: 32.78 kB / 0.4957 GB, free: 176 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004976/0.3324, allocations: 132 kB / 0.4958 GB, free: 44 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003142/0.3327, allocations: 0.5407 MB / 0.4963 GB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005098/0.3332, allocations: 43.95 kB / 0.4964 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.166e-05/0.3332, allocations: 20.09 kB / 0.4964 GB, free: 15.41 MB / 382.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.0001618/0.3334, allocations: 217.3 kB / 0.4966 GB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001907/0.3336, allocations: 139.1 kB / 0.4967 GB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00125/0.3349, allocations: 0.5371 MB / 0.4973 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.3349, allocations: 4 kB / 0.4973 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3349, allocations: 4 kB / 0.4973 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.3349, allocations: 3.984 kB / 0.4973 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002544/0.3375, allocations: 1.567 MB / 0.4988 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.3375, allocations: 0 / 0.4988 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004957/0.338, allocations: 108 kB / 0.4989 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.338, allocations: 4 kB / 0.4989 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.947e-05/0.338, allocations: 15.92 kB / 0.4989 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.338, allocations: 3.938 kB / 0.4989 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.338, allocations: 4 kB / 0.4989 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001608/0.3397, allocations: 0.8302 MB / 0.4997 GB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000478/0.3401, allocations: 320.1 kB / 0.5 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.3403, allocations: 11.94 kB / 0.5001 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004462/0.3407, allocations: 43.95 kB / 0.5001 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.666e-05/0.3408, allocations: 35.91 kB / 0.5001 GB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/0.3408, allocations: 11.98 kB / 0.5001 GB, free: 11.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.008888/0.3497, allocations: 11.24 MB / 0.5111 GB, free: 164 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3498, allocations: 0 / 0.5111 GB, free: 164 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001158/0.3509, allocations: 252 kB / 0.5114 GB, free: 15.91 MB / 398.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.002699/0.3536, allocations: 1.657 MB / 0.513 GB, free: 14.35 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002233/0.3559, allocations: 0.7859 MB / 0.5137 GB, free: 13.56 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3559, allocations: 0 / 0.5137 GB, free: 13.56 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005062/0.3564, allocations: 207.5 kB / 0.5139 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.3576, allocations: 225.3 kB / 0.5142 GB, free: 13.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06429/0.4219, allocations: 45.74 MB / 0.5588 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008517/0.4228, allocations: 1.165 MB / 0.56 GB, free: 14.01 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006095/0.4234, allocations: 198 kB / 0.5601 GB, free: 13.81 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005938/0.424, allocations: 451.1 kB / 0.5606 GB, free: 13.37 MB / 446.1 MB Notification: Performance of SimCode: time 7.62e-07/0.424, allocations: 0 / 0.5606 GB, free: 13.37 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2562/0.6802, allocations: 31.04 MB / 0.5909 GB, free: 120.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.08/13.76, allocations: 13.36 kB / 0.5909 GB, free: 120.2 MB / 462.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)