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.0009132/0.0009132, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.005224/0.005224, allocations: 171.5 kB / 16.26 MB, free: 6.613 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.267/1.267, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/package.mo): time 0.0154/0.0154, allocations: 1.27 MB / 292.7 MB, free: 0.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002675/0.0002675, allocations: 11.94 kB / 354.2 MB, free: 1.691 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1928, allocations: 50.69 MB / 404.9 MB, free: 9.488 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original): time 0.003693/0.1965, allocations: 3.798 MB / 408.7 MB, free: 7.953 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002832/0.1993, allocations: 2.523 MB / 411.3 MB, free: 6.203 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002361/0.1996, allocations: 17.19 kB / 411.3 MB, free: 6.199 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001817/0.2014, allocations: 1.049 MB / 412.3 MB, free: 5.926 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005389/0.202, allocations: 368.1 kB / 412.7 MB, free: 5.773 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005347/0.2025, allocations: 286.5 kB / 413 MB, free: 5.609 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006715/0.2032, allocations: 0.8136 MB / 413.8 MB, free: 5.234 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002952/0.2035, allocations: 223.4 kB / 414 MB, free: 5.102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002818/0.2038, allocations: 305.5 kB / 414.3 MB, free: 4.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003825/0.2042, allocations: 421.9 kB / 414.7 MB, free: 4.832 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.731e-05/0.2042, allocations: 22 kB / 414.7 MB, free: 4.832 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001586/0.2044, allocations: 66.17 kB / 414.8 MB, free: 4.824 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002311/0.2046, allocations: 317.6 kB / 415.1 MB, free: 4.707 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003033/0.2049, allocations: 0.5123 MB / 415.6 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00103/0.206, allocations: 1.274 MB / 416.9 MB, free: 3.879 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.206, allocations: 0 / 416.9 MB, free: 3.879 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.206, allocations: 1.062 kB / 416.9 MB, free: 3.879 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.197e-05/0.206, allocations: 0 / 416.9 MB, free: 3.879 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.002015/0.208, allocations: 1.475 MB / 418.4 MB, free: 2.879 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/0.2081, allocations: 8.438 kB / 418.4 MB, free: 2.879 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.761e-05/0.2082, allocations: 82.23 kB / 418.5 MB, free: 2.812 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000161/0.2083, allocations: 143.3 kB / 418.6 MB, free: 2.734 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00874/0.2171, allocations: 10.7 MB / 429.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.263e-05/0.2171, allocations: 34.22 kB / 429.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.142e-05/0.2172, allocations: 46.42 kB / 429.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009756/0.2182, allocations: 0.4932 MB / 429.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.617e-05/0.2182, allocations: 7.938 kB / 429.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.571e-05/0.2183, allocations: 27.98 kB / 429.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.2183, allocations: 11.94 kB / 429.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001123/0.2194, allocations: 463.6 kB / 430.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004221/0.2236, allocations: 4.576 MB / 434.9 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.2247, allocations: 0.4997 MB / 435.4 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005519/0.2253, allocations: 236.7 kB / 435.7 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/0.2253, allocations: 7.938 kB / 435.7 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.2253, allocations: 34.56 kB / 435.7 MB, free: 7.688 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 1.693e-06/0.2253, allocations: 0 / 435.7 MB, free: 7.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003924/0.2293, allocations: 1.884 MB / 437.6 MB, free: 5.711 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.2293, allocations: 81.11 kB / 437.7 MB, free: 5.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01202/0.2414, allocations: 14.09 MB / 451.8 MB, free: 7.504 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.188e-05/0.2414, allocations: 33.7 kB / 451.8 MB, free: 7.465 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004571/0.2419, allocations: 0.569 MB / 452.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.242, allocations: 149.8 kB / 452.5 MB, free: 6.742 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.414e-05/0.242, allocations: 49.69 kB / 452.6 MB, free: 6.688 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.491e-05/0.2422, allocations: 326 kB / 452.9 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005333/0.2427, allocations: 209 kB / 453.1 MB, free: 6.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005803/0.2433, allocations: 294.9 kB / 453.4 MB, free: 5.844 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.2444, allocations: 493.7 kB / 453.9 MB, free: 5.328 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2444, allocations: 0 / 453.9 MB, free: 5.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001473/0.2458, allocations: 0.684 MB / 454.5 MB, free: 4.633 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.81e-05/0.2459, allocations: 160.8 kB / 454.7 MB, free: 4.441 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2459, allocations: 4 kB / 454.7 MB, free: 4.438 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001527/0.2461, allocations: 36.84 kB / 454.7 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009896/0.2471, allocations: 271.7 kB / 455 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001821/0.2489, allocations: 2.073 MB / 457.1 MB, free: 1.898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005017/0.2495, allocations: 68.08 kB / 457.1 MB, free: 1.832 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.039e-05/0.2495, allocations: 16 kB / 457.2 MB, free: 1.816 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.13e-06/0.2495, allocations: 4 kB / 457.2 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001168/0.2507, allocations: 0.5161 MB / 457.7 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.2507, allocations: 8.219 kB / 457.7 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001178/0.2508, allocations: 32.83 kB / 457.7 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000521/0.2514, allocations: 135.8 kB / 457.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002877/0.2517, allocations: 0.56 MB / 458.4 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004658/0.2521, allocations: 47.97 kB / 458.5 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.2522, allocations: 24.09 kB / 458.5 MB, free: 472 kB / 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 (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.0004534/0.2526, allocations: 473 kB / 458.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/0.2528, allocations: 134.2 kB / 459.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001258/0.2541, allocations: 0.5685 MB / 459.6 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.2541, allocations: 7.984 kB / 459.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.2541, allocations: 4 kB / 459.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.2541, allocations: 3.984 kB / 459.7 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002388/0.2565, allocations: 1.625 MB / 461.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.2565, allocations: 3.938 kB / 461.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000518/0.257, allocations: 120 kB / 461.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.257, allocations: 4 kB / 461.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.619e-05/0.2571, allocations: 8 kB / 461.4 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.2571, allocations: 0 / 461.4 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2571, allocations: 8 kB / 461.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001729/0.2588, allocations: 0.9108 MB / 462.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003669/0.2592, allocations: 315.4 kB / 462.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.2593, allocations: 8 kB / 462.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004836/0.2598, allocations: 59.95 kB / 462.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.93e-05/0.2599, allocations: 27.91 kB / 462.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.928e-05/0.2599, allocations: 8 kB / 462.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.008755/0.2687, allocations: 11.25 MB / 474 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2687, allocations: 0 / 474 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007928/0.2695, allocations: 252 kB / 474.2 MB, free: 0.5391 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 (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.2722, allocations: 1.706 MB / 475.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002285/0.2745, allocations: 0.9032 MB / 476.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2745, allocations: 4.188 kB / 476.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005431/0.2751, allocations: 224 kB / 477.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001289/0.2764, allocations: 203.5 kB / 477.3 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06477/0.3411, allocations: 47.19 MB / 0.5122 GB, free: 13.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007105/0.3419, allocations: 1.158 MB / 0.5133 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005352/0.3424, allocations: 190.1 kB / 0.5135 GB, free: 12.6 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005476/0.343, allocations: 443.2 kB / 0.5139 GB, free: 12.17 MB / 398.1 MB Notification: Performance of SimCode: time 3.8e-07/0.343, allocations: 0 / 0.5139 GB, free: 12.17 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04138/0.3844, allocations: 27.24 MB / 0.5405 GB, free: 1.273 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001982/0.3846, allocations: 307.6 kB / 0.5408 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.054/2.439, allocations: 4.062 kB / 0.5408 GB, free: 0.8906 MB / 414.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/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)