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.005838/0.005838, allocations: 103.5 kB / 15.73 MB, free: 6.039 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.001289/0.001289, allocations: 191.7 kB / 16.67 MB, free: 5.973 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.297/1.297, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.481/1.481, allocations: 1.28 MB / 291.8 MB, free: 0.9141 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 59.89 kB / 402.9 MB, free: 4.117 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2526, allocations: 49.71 MB / 452.6 MB, free: 21.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original): time 0.005185/0.2578, allocations: 4.205 MB / 456.8 MB, free: 18.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003953/0.2618, allocations: 2.624 MB / 459.4 MB, free: 16.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000669/0.2625, allocations: 19.5 kB / 459.5 MB, free: 16.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002532/0.265, allocations: 1.132 MB / 460.6 MB, free: 16.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000889/0.2659, allocations: 420.2 kB / 461 MB, free: 16.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008591/0.2668, allocations: 326.9 kB / 461.3 MB, free: 16.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001027/0.2678, allocations: 0.8568 MB / 462.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004022/0.2683, allocations: 244.7 kB / 462.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004531/0.2687, allocations: 371.7 kB / 462.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004499/0.2692, allocations: 462.5 kB / 463.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.699e-05/0.2693, allocations: 59.16 kB / 463.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002496/0.2695, allocations: 113.3 kB / 463.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002758/0.2698, allocations: 348.5 kB / 463.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000485/0.2703, allocations: 0.5419 MB / 464.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001647/0.272, allocations: 1.384 MB / 465.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.272, allocations: 0 / 465.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.272, allocations: 0 / 465.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.591e-05/0.2721, allocations: 0 / 465.7 MB, free: 14.2 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.003187/0.2753, allocations: 1.651 MB / 467.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.2753, allocations: 13.67 kB / 467.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001008/0.2754, allocations: 77.14 kB / 467.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002982/0.2757, allocations: 144.2 kB / 467.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01046/0.2862, allocations: 10.71 MB / 478.3 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.308e-05/0.2863, allocations: 29.19 kB / 478.3 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.618e-05/0.2864, allocations: 41.33 kB / 478.3 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001051/0.2874, allocations: 494.4 kB / 478.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.639e-05/0.2875, allocations: 1.781 kB / 478.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.874e-05/0.2875, allocations: 16.72 kB / 478.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.2875, allocations: 13.75 kB / 478.8 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.2886, allocations: 427.1 kB / 479.3 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005505/0.2941, allocations: 4.56 MB / 483.8 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.2953, allocations: 485.2 kB / 484.3 MB, free: 5.547 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005176/0.2958, allocations: 197.5 kB / 484.5 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.547e-05/0.2958, allocations: 5.453 kB / 484.5 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.017e-05/0.2959, allocations: 40.66 kB / 484.5 MB, free: 5.438 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.174e-06/0.2959, allocations: 3.938 kB / 484.5 MB, free: 5.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.004135/0.3, allocations: 1.744 MB / 486.3 MB, free: 4.441 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/0.3001, allocations: 85.45 kB / 486.4 MB, free: 4.344 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01239/0.3125, allocations: 14.09 MB / 0.4887 GB, free: 7.488 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001076/0.3126, allocations: 29.7 kB / 0.4888 GB, free: 7.453 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000564/0.3132, allocations: 0.5761 MB / 0.4893 GB, free: 6.875 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/0.3133, allocations: 141.9 kB / 0.4895 GB, free: 6.734 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.3135, allocations: 94.14 kB / 0.4895 GB, free: 6.637 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.3136, allocations: 322 kB / 0.4899 GB, free: 6.316 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000524/0.3142, allocations: 198.9 kB / 0.49 GB, free: 6.117 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005222/0.3147, allocations: 274.9 kB / 0.4903 GB, free: 5.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009367/0.3157, allocations: 449.6 kB / 0.4907 GB, free: 5.348 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.3157, allocations: 4 kB / 0.4907 GB, free: 5.344 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001737/0.3174, allocations: 0.6294 MB / 0.4913 GB, free: 4.703 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.3175, allocations: 10.34 kB / 0.4914 GB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.3175, allocations: 7.969 kB / 0.4914 GB, free: 4.688 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001947/0.3177, allocations: 40.77 kB / 0.4914 GB, free: 4.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008653/0.3185, allocations: 215.8 kB / 0.4916 GB, free: 4.434 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002031/0.3206, allocations: 2.117 MB / 0.4937 GB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008471/0.3215, allocations: 43.97 kB / 0.4937 GB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.274e-05/0.3215, allocations: 16 kB / 0.4937 GB, free: 2.094 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001175/0.3227, allocations: 0.5221 MB / 0.4942 GB, free: 1.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005072/0.3232, allocations: 262.9 kB / 0.4945 GB, free: 1.285 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008699/0.3241, allocations: 429.5 kB / 0.4949 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.376e-06/0.3241, allocations: 0 / 0.4949 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.001642/0.3258, allocations: 0.6139 MB / 0.4955 GB, free: 216 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.3258, allocations: 8 kB / 0.4955 GB, free: 208 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.3258, allocations: 256 / 0.4955 GB, free: 208 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001489/0.326, allocations: 40.78 kB / 0.4956 GB, free: 164 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004917/0.3265, allocations: 127.8 kB / 0.4957 GB, free: 36 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004137/0.3269, allocations: 0.5484 MB / 0.4962 GB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007043/0.3276, allocations: 48 kB / 0.4963 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.819e-05/0.3277, allocations: 12 kB / 0.4963 GB, free: 15.4 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.0002081/0.3279, allocations: 213.4 kB / 0.4965 GB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003851/0.3283, allocations: 134.2 kB / 0.4966 GB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001578/0.3299, allocations: 0.5295 MB / 0.4971 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.3299, allocations: 7.938 kB / 0.4971 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3299, allocations: 0 / 0.4971 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.3299, allocations: 3.984 kB / 0.4971 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003437/0.3334, allocations: 1.579 MB / 0.4987 GB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.3334, allocations: 4 kB / 0.4987 GB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005086/0.3339, allocations: 103.9 kB / 0.4988 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.265e-06/0.3339, allocations: 4 kB / 0.4988 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.555e-05/0.334, allocations: 11.94 kB / 0.4988 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.334, allocations: 0 / 0.4988 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.334, allocations: 4 kB / 0.4988 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001834/0.3358, allocations: 0.8334 MB / 0.4996 GB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006003/0.3365, allocations: 307.4 kB / 0.4999 GB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002377/0.3367, allocations: 15.92 kB / 0.4999 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005145/0.3372, allocations: 39.97 kB / 0.5 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.724e-05/0.3373, allocations: 35.95 kB / 0.5 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.279e-05/0.3374, allocations: 8 kB / 0.5 GB, free: 11.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.01066/0.348, allocations: 11.24 MB / 0.511 GB, free: 180 kB / 382.1 MB Notification: Performance of sort global known variables: time 9.22e-07/0.3481, allocations: 4 kB / 0.511 GB, free: 176 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001759/0.3498, allocations: 256 kB / 0.5112 GB, free: 15.92 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.003243/0.3531, allocations: 1.646 MB / 0.5128 GB, free: 14.37 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002306/0.3554, allocations: 0.7972 MB / 0.5136 GB, free: 13.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.3555, allocations: 4 kB / 0.5136 GB, free: 13.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005167/0.356, allocations: 208.4 kB / 0.5138 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.001622/0.3576, allocations: 217.4 kB / 0.514 GB, free: 13.17 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07159/0.4292, allocations: 45.68 MB / 0.5586 GB, free: 15.27 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009699/0.4302, allocations: 1.165 MB / 0.5598 GB, free: 14.07 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007377/0.431, allocations: 198 kB / 0.56 GB, free: 13.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006797/0.4317, allocations: 443.3 kB / 0.5604 GB, free: 13.45 MB / 446.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4317, allocations: 3.938 kB / 0.5604 GB, free: 13.44 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2868/0.7185, allocations: 31.04 MB / 0.5907 GB, free: 120 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.96/14.68, allocations: 8.75 kB / 0.5907 GB, free: 120 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 & /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)