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.001068/0.001068, allocations: 108 kB / 15.6 MB, free: 132 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.001115/0.001115, allocations: 198 kB / 16.54 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.283/1.283, 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 1.008/1.008, allocations: 1.291 MB / 291.7 MB, free: 1 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002023/0.002023, allocations: 59.91 kB / 352.5 MB, free: 1.504 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2463, allocations: 49.72 MB / 402.2 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original): time 0.005284/0.2516, allocations: 4.198 MB / 406.4 MB, free: 7.68 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003785/0.2554, allocations: 2.631 MB / 409.1 MB, free: 5.848 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006228/0.2561, allocations: 18.06 kB / 409.1 MB, free: 5.844 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002522/0.2587, allocations: 1.114 MB / 410.2 MB, free: 5.539 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009727/0.2596, allocations: 403.1 kB / 410.6 MB, free: 5.359 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008153/0.2605, allocations: 316.1 kB / 410.9 MB, free: 5.188 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00101/0.2615, allocations: 0.8607 MB / 411.8 MB, free: 4.773 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000362/0.2619, allocations: 243.9 kB / 412 MB, free: 4.629 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004065/0.2623, allocations: 360.6 kB / 412.3 MB, free: 4.469 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000439/0.2627, allocations: 464.8 kB / 412.8 MB, free: 4.289 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.566e-05/0.2628, allocations: 57.75 kB / 412.9 MB, free: 4.289 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002239/0.263, allocations: 111.1 kB / 413 MB, free: 4.273 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002838/0.2633, allocations: 351.4 kB / 413.3 MB, free: 4.121 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004247/0.2638, allocations: 0.5375 MB / 413.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001757/0.2655, allocations: 1.351 MB / 415.2 MB, free: 3.137 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.2656, allocations: 0.75 kB / 415.2 MB, free: 3.137 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.2656, allocations: 0 / 415.2 MB, free: 3.137 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.447e-05/0.2656, allocations: 4 kB / 415.2 MB, free: 3.133 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.003251/0.2689, allocations: 1.655 MB / 416.9 MB, free: 2.023 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.343e-05/0.269, allocations: 13.7 kB / 416.9 MB, free: 2.02 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.754e-05/0.269, allocations: 77.86 kB / 416.9 MB, free: 1.957 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002158/0.2693, allocations: 143.4 kB / 417.1 MB, free: 1.879 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01093/0.2802, allocations: 10.69 MB / 427.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.205e-05/0.2803, allocations: 39.86 kB / 427.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.277e-05/0.2804, allocations: 43.5 kB / 427.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.2814, allocations: 492.5 kB / 428.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.434e-05/0.2814, allocations: 13.27 kB / 428.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.296e-05/0.2815, allocations: 15.81 kB / 428.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.618e-05/0.2815, allocations: 14.59 kB / 428.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.2825, allocations: 419.5 kB / 428.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004329/0.2869, allocations: 4.568 MB / 433.4 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009681/0.2879, allocations: 476.6 kB / 433.8 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005172/0.2884, allocations: 206 kB / 434 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.2884, allocations: 8 kB / 434 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.2885, allocations: 34.5 kB / 434.1 MB, free: 7.016 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 1.523e-06/0.2885, allocations: 0 / 434.1 MB, free: 7.016 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003793/0.2923, allocations: 1.751 MB / 435.8 MB, free: 5.172 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.2923, allocations: 81.11 kB / 435.9 MB, free: 5.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01201/0.3043, allocations: 14.09 MB / 450 MB, free: 6.965 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.137e-05/0.3044, allocations: 33.7 kB / 450 MB, free: 6.926 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005334/0.305, allocations: 0.5722 MB / 450.6 MB, free: 6.352 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/0.3052, allocations: 149.8 kB / 450.7 MB, free: 6.203 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001644/0.3053, allocations: 94.14 kB / 450.8 MB, free: 6.105 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.3055, allocations: 326 kB / 451.1 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005203/0.306, allocations: 187 kB / 451.3 MB, free: 5.598 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005585/0.3066, allocations: 278.9 kB / 451.6 MB, free: 5.293 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009632/0.3075, allocations: 445.6 kB / 452 MB, free: 4.824 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3075, allocations: 0 / 452 MB, free: 4.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001586/0.3091, allocations: 0.638 MB / 452.7 MB, free: 4.176 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.3092, allocations: 10.17 kB / 452.7 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.3092, allocations: 4 kB / 452.7 MB, free: 4.164 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000175/0.3094, allocations: 41.02 kB / 452.7 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008725/0.3102, allocations: 216.5 kB / 452.9 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001825/0.3121, allocations: 2.124 MB / 455.1 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005858/0.3127, allocations: 44.06 kB / 455.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.248e-05/0.3127, allocations: 23.98 kB / 455.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008518/0.3136, allocations: 0.5127 MB / 455.6 MB, free: 1.039 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004857/0.3141, allocations: 270.9 kB / 455.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008675/0.315, allocations: 429.6 kB / 456.3 MB, free: 300 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.705e-06/0.315, allocations: 0 / 456.3 MB, free: 300 kB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.001473/0.3164, allocations: 0.6059 MB / 456.9 MB, free: 15.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.538e-06/0.3165, allocations: 4 kB / 456.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.3165, allocations: 4 kB / 456.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000126/0.3166, allocations: 40.72 kB / 457 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005014/0.3171, allocations: 136 kB / 457.1 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002939/0.3174, allocations: 0.5406 MB / 457.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000527/0.318, allocations: 39.97 kB / 457.7 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.75e-05/0.318, allocations: 20.09 kB / 457.7 MB, free: 14.87 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.0001433/0.3182, allocations: 216.4 kB / 457.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002147/0.3184, allocations: 130.3 kB / 458.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001189/0.3196, allocations: 0.5255 MB / 458.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.3196, allocations: 4 kB / 458.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.3196, allocations: 3.938 kB / 458.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.3196, allocations: 7.984 kB / 458.6 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002387/0.322, allocations: 1.567 MB / 460.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.322, allocations: 4.031 kB / 460.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004982/0.3225, allocations: 107.9 kB / 460.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.3225, allocations: 0 / 460.3 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.929e-05/0.3226, allocations: 15.94 kB / 460.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.818e-06/0.3226, allocations: 4 kB / 460.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3226, allocations: 0 / 460.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00163/0.3242, allocations: 0.8322 MB / 461.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004243/0.3247, allocations: 311.3 kB / 461.4 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001385/0.3248, allocations: 19.92 kB / 461.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00048/0.3253, allocations: 39.97 kB / 461.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.821e-05/0.3254, allocations: 27.95 kB / 461.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.115e-05/0.3254, allocations: 12 kB / 461.5 MB, free: 10.9 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0091/0.3345, allocations: 11.24 MB / 472.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.3345, allocations: 0 / 472.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001468/0.336, allocations: 256 kB / 473 MB, free: 15.4 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.003297/0.3393, allocations: 1.645 MB / 474.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002354/0.3417, allocations: 0.8214 MB / 475.5 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.3417, allocations: 0 / 475.5 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005131/0.3423, allocations: 204.2 kB / 475.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/0.3438, allocations: 211.6 kB / 475.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06481/0.4086, allocations: 46.69 MB / 0.5103 GB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008228/0.4094, allocations: 1.165 MB / 0.5115 GB, free: 12.3 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006294/0.4101, allocations: 194 kB / 0.5117 GB, free: 12.11 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005989/0.4107, allocations: 443.2 kB / 0.5121 GB, free: 11.68 MB / 398.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4107, allocations: 0 / 0.5121 GB, free: 11.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8504/1.261, allocations: 30.58 MB / 0.542 GB, free: 13.39 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.58/13.84, allocations: 7.406 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 & /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)