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.0008583/0.0008584, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.0008941/0.0008942, allocations: 177.3 kB / 15.95 MB, free: 216 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.236/1.236, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/package.mo): time 0.01303/0.01303, allocations: 1.271 MB / 292.3 MB, free: 0.9961 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002946/0.0002947, allocations: 11.94 kB / 353.5 MB, free: 2.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2258/0.2261, allocations: 50.69 MB / 404.2 MB, free: 9.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original): time 0.003764/0.2299, allocations: 3.543 MB / 407.8 MB, free: 8.305 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002946/0.2329, allocations: 2.435 MB / 410.2 MB, free: 6.598 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003217/0.2332, allocations: 15.91 kB / 410.2 MB, free: 6.594 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001929/0.2352, allocations: 0.9649 MB / 411.2 MB, free: 6.359 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007287/0.2359, allocations: 397.2 kB / 411.6 MB, free: 6.195 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007104/0.2366, allocations: 253.4 kB / 411.8 MB, free: 6.066 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007559/0.2374, allocations: 0.5623 MB / 412.4 MB, free: 5.777 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003516/0.2377, allocations: 178.3 kB / 412.5 MB, free: 5.688 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003503/0.2381, allocations: 293.9 kB / 412.8 MB, free: 5.57 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004445/0.2386, allocations: 366.2 kB / 413.2 MB, free: 5.434 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.238e-05/0.2386, allocations: 21.75 kB / 413.2 MB, free: 5.434 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001822/0.2388, allocations: 62.08 kB / 413.3 MB, free: 5.422 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002868/0.2391, allocations: 312.6 kB / 413.6 MB, free: 5.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.2392, allocations: 218 kB / 413.8 MB, free: 5.152 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001175/0.2404, allocations: 1.049 MB / 414.8 MB, free: 4.895 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.2404, allocations: 0 / 414.8 MB, free: 4.895 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.2405, allocations: 1.375 kB / 414.8 MB, free: 4.895 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.396e-05/0.2405, allocations: 0 / 414.8 MB, free: 4.895 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.002331/0.2428, allocations: 1.483 MB / 416.3 MB, free: 3.898 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.2429, allocations: 9.656 kB / 416.3 MB, free: 3.898 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.176e-05/0.243, allocations: 81.55 kB / 416.4 MB, free: 3.832 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001829/0.2431, allocations: 139.6 kB / 416.5 MB, free: 3.758 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009875/0.253, allocations: 10.64 MB / 427.2 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.371e-05/0.2531, allocations: 33.41 kB / 427.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.341e-05/0.2532, allocations: 44.67 kB / 427.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.2542, allocations: 0.493 MB / 427.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.2542, allocations: 2.172 kB / 427.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.225e-05/0.2543, allocations: 19.92 kB / 427.8 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.2543, allocations: 15.16 kB / 427.8 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.2554, allocations: 463 kB / 428.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004421/0.2598, allocations: 4.573 MB / 432.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.2609, allocations: 0.508 MB / 433.3 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.248e-05/0.2609, allocations: 12 kB / 433.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/0.261, allocations: 35.44 kB / 433.4 MB, free: 9.609 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 2.234e-06/0.261, allocations: 0 / 433.4 MB, free: 9.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003723/0.2647, allocations: 1.889 MB / 435.3 MB, free: 7.629 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.2648, allocations: 89.05 kB / 435.3 MB, free: 7.523 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0116/0.2764, allocations: 14.09 MB / 449.4 MB, free: 9.414 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.099e-05/0.2764, allocations: 33.7 kB / 449.5 MB, free: 9.375 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004652/0.2769, allocations: 0.5761 MB / 450 MB, free: 8.797 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.277, allocations: 145.8 kB / 450.2 MB, free: 8.652 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.066e-05/0.2771, allocations: 8 kB / 450.2 MB, free: 8.645 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.2772, allocations: 326 kB / 450.5 MB, free: 8.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005105/0.2777, allocations: 201 kB / 450.7 MB, free: 8.125 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005554/0.2783, allocations: 294.9 kB / 451 MB, free: 7.805 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005211/0.2788, allocations: 227.9 kB / 451.2 MB, free: 7.582 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2788, allocations: 0 / 451.2 MB, free: 7.582 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001475/0.2803, allocations: 0.6851 MB / 451.9 MB, free: 6.887 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003249/0.2806, allocations: 0.896 MB / 452.8 MB, free: 5.906 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.2806, allocations: 7.953 kB / 452.8 MB, free: 5.898 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001642/0.2808, allocations: 40.84 kB / 452.8 MB, free: 5.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000929/0.2818, allocations: 263.7 kB / 453.1 MB, free: 5.598 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001888/0.2837, allocations: 2.093 MB / 455.2 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004995/0.2842, allocations: 52.03 kB / 455.2 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-05/0.2842, allocations: 24 kB / 455.3 MB, free: 3.273 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.813e-06/0.2842, allocations: 4 kB / 455.3 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001081/0.2853, allocations: 0.5123 MB / 455.8 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.2853, allocations: 4 kB / 455.8 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001118/0.2854, allocations: 40.84 kB / 455.8 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005011/0.286, allocations: 136 kB / 456 MB, free: 2.574 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003017/0.2863, allocations: 0.5484 MB / 456.5 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004357/0.2867, allocations: 60.05 kB / 456.6 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.2868, allocations: 16 kB / 456.6 MB, free: 1.926 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.000563/0.2873, allocations: 486.8 kB / 457.1 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001498/0.2875, allocations: 126.4 kB / 457.2 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001202/0.2887, allocations: 0.5766 MB / 457.8 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.2887, allocations: 8 kB / 457.8 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.2887, allocations: 4 kB / 457.8 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.2887, allocations: 0 / 457.8 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002434/0.2912, allocations: 1.602 MB / 459.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.2912, allocations: 3.984 kB / 459.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004987/0.2917, allocations: 116 kB / 459.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.2917, allocations: 4 kB / 459.5 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.872e-05/0.2917, allocations: 15.98 kB / 459.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.2917, allocations: 0 / 459.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.2918, allocations: 7.953 kB / 459.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001636/0.2934, allocations: 0.9546 MB / 460.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004112/0.2938, allocations: 319.3 kB / 460.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/0.2939, allocations: 19.92 kB / 460.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004353/0.2944, allocations: 47.97 kB / 460.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.105e-05/0.2945, allocations: 31.95 kB / 460.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.238e-05/0.2945, allocations: 12 kB / 460.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.009073/0.3036, allocations: 11.24 MB / 472.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3036, allocations: 0 / 472.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009291/0.3045, allocations: 260 kB / 472.4 MB, free: 1.918 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.002743/0.3073, allocations: 2.04 MB / 474.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002184/0.3095, allocations: 0.8908 MB / 475.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.3095, allocations: 0 / 475.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004958/0.31, allocations: 228.2 kB / 475.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008589/0.3109, allocations: 182.9 kB / 475.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03277/0.3436, allocations: 35.41 MB / 0.4992 GB, free: 10.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007534/0.3444, allocations: 1.193 MB / 0.5003 GB, free: 9.664 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005635/0.345, allocations: 194 kB / 0.5005 GB, free: 9.473 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005318/0.3455, allocations: 439.3 kB / 0.5009 GB, free: 9.043 MB / 382.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3455, allocations: 0 / 0.5009 GB, free: 9.043 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0396/0.3851, allocations: 26.72 MB / 0.527 GB, free: 14.67 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000184/0.3854, allocations: 292.4 kB / 0.5273 GB, free: 14.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.922/2.308, allocations: 0 / 0.5273 GB, free: 14.3 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/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: