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.001145/0.001144, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001566/0.001566, allocations: 187.2 kB / 16.25 MB, free: 6.586 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.345/1.345, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.2.0-alpha.1/package.mo): time 0.02361/0.02361, allocations: 1.295 MB / 291.4 MB, free: 1.121 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 63.91 kB / 352 MB, free: 1.863 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09701/0.09839, allocations: 49.73 MB / 401.7 MB, free: 100 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original): time 0.1815/0.2799, allocations: 4.198 MB / 405.9 MB, free: 7.902 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004283/0.2842, allocations: 2.574 MB / 408.5 MB, free: 6.117 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007098/0.285, allocations: 16.47 kB / 408.5 MB, free: 6.113 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002942/0.288, allocations: 1.082 MB / 409.6 MB, free: 5.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001064/0.289, allocations: 364.2 kB / 410 MB, free: 5.691 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008916/0.2899, allocations: 284.1 kB / 410.2 MB, free: 5.527 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00109/0.291, allocations: 0.8625 MB / 411.1 MB, free: 5.113 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003591/0.2914, allocations: 248.6 kB / 411.4 MB, free: 4.969 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004211/0.2918, allocations: 366.2 kB / 411.7 MB, free: 4.801 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004756/0.2923, allocations: 476.1 kB / 412.2 MB, free: 4.621 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.162e-05/0.2924, allocations: 57.53 kB / 412.2 MB, free: 4.621 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000237/0.2927, allocations: 114.3 kB / 412.3 MB, free: 4.602 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002685/0.2929, allocations: 356.1 kB / 412.7 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003219/0.2933, allocations: 0.5321 MB / 413.2 MB, free: 4.051 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001215/0.2945, allocations: 1.356 MB / 414.6 MB, free: 3.465 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.686e-06/0.2945, allocations: 0 / 414.6 MB, free: 3.465 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2945, allocations: 1.094 kB / 414.6 MB, free: 3.465 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.875e-05/0.2945, allocations: 4 kB / 414.6 MB, free: 3.461 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.002265/0.2968, allocations: 1.651 MB / 416.2 MB, free: 2.355 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.2969, allocations: 13.73 kB / 416.2 MB, free: 2.352 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.494e-05/0.2969, allocations: 81.02 kB / 416.3 MB, free: 2.285 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001916/0.2971, allocations: 144.4 kB / 416.5 MB, free: 2.207 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008915/0.3061, allocations: 10.69 MB / 427.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.303e-05/0.3061, allocations: 39.39 kB / 427.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.478e-05/0.3062, allocations: 38.91 kB / 427.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009821/0.3072, allocations: 495 kB / 427.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.143e-05/0.3072, allocations: 5.25 kB / 427.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.2e-05/0.3073, allocations: 17.73 kB / 427.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.3073, allocations: 13.47 kB / 427.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009871/0.3083, allocations: 424.5 kB / 428.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004983/0.3133, allocations: 4.572 MB / 432.7 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.3144, allocations: 481.1 kB / 433.2 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005111/0.3149, allocations: 196.7 kB / 433.4 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.119e-05/0.315, allocations: 8 kB / 433.4 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/0.3151, allocations: 34.56 kB / 433.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 2.345e-06/0.3151, allocations: 0 / 433.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004727/0.3198, allocations: 1.75 MB / 435.2 MB, free: 5.676 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.3199, allocations: 81.11 kB / 435.3 MB, free: 5.578 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01363/0.3335, allocations: 14.09 MB / 449.4 MB, free: 7.465 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001194/0.3337, allocations: 29.7 kB / 449.4 MB, free: 7.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005436/0.3343, allocations: 0.5645 MB / 450 MB, free: 6.859 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/0.3344, allocations: 150.4 kB / 450.1 MB, free: 6.711 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.3346, allocations: 94.16 kB / 450.2 MB, free: 6.613 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.817e-05/0.3347, allocations: 326 kB / 450.5 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000527/0.3352, allocations: 187 kB / 450.7 MB, free: 6.105 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005543/0.3358, allocations: 283.5 kB / 451 MB, free: 5.797 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009262/0.3367, allocations: 453.6 kB / 451.4 MB, free: 5.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3368, allocations: 0 / 451.4 MB, free: 5.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001664/0.3384, allocations: 0.6371 MB / 452.1 MB, free: 4.672 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.3385, allocations: 4 kB / 452.1 MB, free: 4.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.3385, allocations: 4 kB / 452.1 MB, free: 4.664 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001834/0.3387, allocations: 41.03 kB / 452.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008359/0.3395, allocations: 215.7 kB / 452.3 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001799/0.3413, allocations: 2.113 MB / 454.4 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007209/0.3421, allocations: 52.05 kB / 454.5 MB, free: 2.082 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.97e-05/0.3421, allocations: 16 kB / 454.5 MB, free: 2.066 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000963/0.3431, allocations: 0.5166 MB / 455 MB, free: 1.547 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004628/0.3436, allocations: 270.9 kB / 455.3 MB, free: 1.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007945/0.3444, allocations: 429.6 kB / 455.7 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.495e-06/0.3444, allocations: 3.938 kB / 455.7 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.001461/0.3458, allocations: 0.6021 MB / 456.3 MB, free: 188 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.3459, allocations: 8 kB / 456.3 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.3459, allocations: 0 / 456.3 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001349/0.346, allocations: 48.77 kB / 456.4 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000491/0.3465, allocations: 128 kB / 456.5 MB, free: 0 / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003241/0.3468, allocations: 0.5408 MB / 457 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006806/0.3475, allocations: 51.89 kB / 457.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.037e-05/0.3476, allocations: 20.09 kB / 457.1 MB, free: 15.36 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.0001741/0.3478, allocations: 208.5 kB / 457.3 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003224/0.3481, allocations: 126.3 kB / 457.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001349/0.3495, allocations: 0.5372 MB / 458 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.3495, allocations: 7.938 kB / 458 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.3495, allocations: 0 / 458 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.3495, allocations: 0 / 458 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002769/0.3523, allocations: 1.567 MB / 459.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.3523, allocations: 8.125 kB / 459.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004752/0.3528, allocations: 107.8 kB / 459.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.3528, allocations: 4 kB / 459.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.863e-05/0.3528, allocations: 7.938 kB / 459.7 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.3528, allocations: 4 kB / 459.7 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.3528, allocations: 4 kB / 459.7 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/0.3545, allocations: 0.8322 MB / 460.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005033/0.355, allocations: 311.3 kB / 460.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001803/0.3552, allocations: 15.94 kB / 460.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004743/0.3557, allocations: 39.95 kB / 460.9 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.381e-05/0.3558, allocations: 31.97 kB / 460.9 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-05/0.3558, allocations: 12 kB / 460.9 MB, free: 11.4 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.008515/0.3643, allocations: 11.24 MB / 472.1 MB, free: 160 kB / 334.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.3643, allocations: 0 / 472.1 MB, free: 160 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.001298/0.3656, allocations: 256 kB / 472.4 MB, free: 15.9 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.002767/0.3684, allocations: 1.656 MB / 474 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002361/0.3708, allocations: 0.8097 MB / 474.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.3708, allocations: 4 kB / 474.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004819/0.3713, allocations: 212 kB / 475.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001568/0.3729, allocations: 214.3 kB / 475.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06833/0.4412, allocations: 46.96 MB / 0.51 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00099/0.4423, allocations: 1.166 MB / 0.5111 GB, free: 12.53 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008335/0.4431, allocations: 202 kB / 0.5113 GB, free: 12.33 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008062/0.444, allocations: 439.3 kB / 0.5117 GB, free: 11.9 MB / 398.1 MB Notification: Performance of SimCode: time 1.403e-06/0.444, allocations: 0 / 0.5117 GB, free: 11.9 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06104/0.505, allocations: 30.33 MB / 0.5414 GB, free: 13.9 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000247/0.5053, allocations: 318.8 kB / 0.5417 GB, free: 13.52 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.268/2.773, allocations: 0 / 0.5417 GB, free: 13.52 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)