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.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: "" <> 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.0007761/0.0007761, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008775/0.0008776, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/package.mo): time 0.01154/0.01154, allocations: 1.272 MB / 292.4 MB, free: 0.9805 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003309/0.000331, allocations: 8 kB / 353.6 MB, free: 2.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3096, allocations: 50.69 MB / 404.3 MB, free: 9.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original): time 0.004988/0.3147, allocations: 3.608 MB / 407.9 MB, free: 8.242 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004023/0.3187, allocations: 2.374 MB / 410.3 MB, free: 6.574 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004407/0.3192, allocations: 15.47 kB / 410.3 MB, free: 6.57 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002264/0.3215, allocations: 0.9799 MB / 411.3 MB, free: 6.328 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007304/0.3222, allocations: 331 kB / 411.6 MB, free: 6.211 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007981/0.323, allocations: 252.5 kB / 411.9 MB, free: 6.078 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009191/0.3239, allocations: 0.7534 MB / 412.6 MB, free: 5.715 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003557/0.3243, allocations: 185.5 kB / 412.8 MB, free: 5.617 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003991/0.3247, allocations: 293.3 kB / 413.1 MB, free: 5.508 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005591/0.3253, allocations: 377.5 kB / 413.5 MB, free: 5.375 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.247e-05/0.3254, allocations: 25.28 kB / 413.5 MB, free: 5.371 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002605/0.3256, allocations: 66.81 kB / 413.5 MB, free: 5.359 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003636/0.326, allocations: 311.3 kB / 413.8 MB, free: 5.254 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000164/0.3262, allocations: 218.5 kB / 414.1 MB, free: 5.086 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001453/0.3276, allocations: 1.055 MB / 415.1 MB, free: 4.82 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3276, allocations: 0 / 415.1 MB, free: 4.82 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3276, allocations: 0 / 415.1 MB, free: 4.82 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.523e-05/0.3277, allocations: 0 / 415.1 MB, free: 4.82 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.002515/0.3302, allocations: 1.479 MB / 416.6 MB, free: 3.828 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.98e-05/0.3303, allocations: 9.531 kB / 416.6 MB, free: 3.828 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001481/0.3304, allocations: 81.95 kB / 416.7 MB, free: 3.762 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002507/0.3307, allocations: 139.3 kB / 416.8 MB, free: 3.688 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01445/0.3451, allocations: 10.64 MB / 427.5 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.606e-05/0.3452, allocations: 30.28 kB / 427.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.368e-05/0.3453, allocations: 39.86 kB / 427.5 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.3465, allocations: 0.5082 MB / 428 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.414e-05/0.3466, allocations: 2.156 kB / 428 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.92e-05/0.3466, allocations: 24.89 kB / 428.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.598e-05/0.3466, allocations: 9.812 kB / 428.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.3477, allocations: 467 kB / 428.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005148/0.3529, allocations: 4.576 MB / 433.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.354, allocations: 0.5081 MB / 433.6 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005336/0.3545, allocations: 224.7 kB / 433.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.677e-05/0.3546, allocations: 4 kB / 433.8 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.04e-05/0.3546, allocations: 34.56 kB / 433.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 2.054e-06/0.3547, allocations: 0 / 433.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.00427/0.3589, allocations: 1.888 MB / 435.8 MB, free: 7.238 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.057e-05/0.359, allocations: 85.11 kB / 435.8 MB, free: 7.137 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01404/0.3731, allocations: 14.08 MB / 449.9 MB, free: 9.035 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.3732, allocations: 37.7 kB / 450 MB, free: 8.992 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006547/0.3739, allocations: 0.565 MB / 450.5 MB, free: 8.422 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002284/0.3741, allocations: 145.9 kB / 450.7 MB, free: 8.277 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.004e-05/0.3742, allocations: 8 kB / 450.7 MB, free: 8.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.3743, allocations: 326 kB / 451 MB, free: 7.945 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005689/0.3749, allocations: 204.9 kB / 451.2 MB, free: 7.746 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00058/0.3755, allocations: 302.8 kB / 451.5 MB, free: 7.418 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005451/0.3761, allocations: 226.6 kB / 451.7 MB, free: 7.199 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3761, allocations: 0 / 451.7 MB, free: 7.199 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001713/0.3778, allocations: 0.6773 MB / 452.4 MB, free: 6.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000128/0.3779, allocations: 168.6 kB / 452.5 MB, free: 6.312 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.378, allocations: 0.6875 kB / 452.5 MB, free: 6.312 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001943/0.3782, allocations: 36.78 kB / 452.6 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008822/0.3791, allocations: 279.7 kB / 452.9 MB, free: 6 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002071/0.3811, allocations: 2.069 MB / 454.9 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007144/0.3819, allocations: 60.05 kB / 455 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.411e-05/0.3819, allocations: 16 kB / 455 MB, free: 3.699 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.376e-06/0.382, allocations: 4 kB / 455 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001118/0.3831, allocations: 0.5162 MB / 455.5 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.3831, allocations: 4 kB / 455.5 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001361/0.3832, allocations: 28.84 kB / 455.6 MB, free: 3.141 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000494/0.3837, allocations: 143.9 kB / 455.7 MB, free: 3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003983/0.3842, allocations: 0.5522 MB / 456.2 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006946/0.3849, allocations: 52.06 kB / 456.3 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.28e-05/0.3849, allocations: 20 kB / 456.3 MB, free: 2.352 MB / 318.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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0009157/0.3858, allocations: 476.9 kB / 456.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003222/0.3862, allocations: 130.3 kB / 456.9 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001448/0.3876, allocations: 0.5727 MB / 457.5 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.176e-06/0.3877, allocations: 11.95 kB / 457.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.3877, allocations: 0 / 457.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/0.3877, allocations: 11.92 kB / 457.5 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003133/0.3908, allocations: 1.622 MB / 459.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.662e-06/0.3908, allocations: 4 kB / 459.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004763/0.3913, allocations: 115.8 kB / 459.2 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-06/0.3913, allocations: 4 kB / 459.2 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.632e-05/0.3914, allocations: 15.98 kB / 459.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.591e-06/0.3914, allocations: 8.062 kB / 459.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.3914, allocations: 0 / 459.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001756/0.3932, allocations: 0.8908 MB / 460.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006086/0.3938, allocations: 315.4 kB / 460.5 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001852/0.394, allocations: 12 kB / 460.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004984/0.3945, allocations: 55.95 kB / 460.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.913e-05/0.3946, allocations: 27.95 kB / 460.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.181e-05/0.3946, allocations: 12 kB / 460.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.01142/0.4061, allocations: 11.24 MB / 471.8 MB, free: 2.68 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4061, allocations: 0 / 471.8 MB, free: 2.68 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001634/0.4077, allocations: 252 kB / 472.1 MB, free: 2.434 MB / 334.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003172/0.4109, allocations: 1.717 MB / 473.8 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002324/0.4133, allocations: 0.8909 MB / 474.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.4133, allocations: 0 / 474.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000536/0.4138, allocations: 228.1 kB / 474.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001468/0.4153, allocations: 199.2 kB / 475.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04424/0.4596, allocations: 34.32 MB / 0.4975 GB, free: 12.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001113/0.4607, allocations: 1.162 MB / 0.4986 GB, free: 11.63 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009937/0.4617, allocations: 198 kB / 0.4988 GB, free: 11.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009009/0.4627, allocations: 450.7 kB / 0.4992 GB, free: 11 MB / 382.1 MB Notification: Performance of SimCode: time 1.553e-06/0.4627, allocations: 4 kB / 0.4992 GB, free: 11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05307/0.5158, allocations: 26.76 MB / 0.5254 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002812/0.5161, allocations: 294.4 kB / 0.5256 GB, free: 232 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.189/2.705, allocations: 0 / 0.5256 GB, free: 232 kB / 398.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleControlledDrive_original_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Credibility_Credibility_Examples_SimpleControlledDriveNonlinear_SimpleControlledDrive_original.fmu > Credibility_Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original.pipe 2>&1) Environment - environmentSimulation: