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.001526/0.001526, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001948/0.001948, allocations: 196 kB / 16.14 MB, free: 6.703 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.3/1.3, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/package.mo): time 0.5973/0.5973, allocations: 1.285 MB / 291.3 MB, free: 1.227 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 59.91 kB / 351.8 MB, free: 2.008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08692/0.08836, allocations: 49.73 MB / 401.6 MB, free: 244 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original): time 0.1421/0.2305, allocations: 4.199 MB / 405.8 MB, free: 7.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003299/0.2338, allocations: 2.585 MB / 408.3 MB, free: 5.945 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000349/0.2342, allocations: 18.97 kB / 408.4 MB, free: 5.938 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002068/0.2363, allocations: 1.047 MB / 409.4 MB, free: 5.668 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006083/0.2369, allocations: 358.6 kB / 409.8 MB, free: 5.523 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006512/0.2376, allocations: 291.5 kB / 410 MB, free: 5.352 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006905/0.2383, allocations: 0.808 MB / 410.9 MB, free: 4.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003149/0.2386, allocations: 226.6 kB / 411.1 MB, free: 4.859 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003622/0.239, allocations: 325.5 kB / 411.4 MB, free: 4.727 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004314/0.2394, allocations: 443.7 kB / 411.8 MB, free: 4.566 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.728e-05/0.2395, allocations: 38.19 kB / 411.9 MB, free: 4.559 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002145/0.2397, allocations: 77.59 kB / 411.9 MB, free: 4.547 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002977/0.24, allocations: 319.2 kB / 412.2 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003861/0.2404, allocations: 0.5058 MB / 412.8 MB, free: 4.059 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001294/0.2417, allocations: 1.31 MB / 414.1 MB, free: 3.496 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.2418, allocations: 1.375 kB / 414.1 MB, free: 3.496 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.2418, allocations: 0 / 414.1 MB, free: 3.496 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.519e-05/0.2418, allocations: 0 / 414.1 MB, free: 3.496 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.002553/0.2443, allocations: 1.651 MB / 415.7 MB, free: 2.391 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2444, allocations: 10.44 kB / 415.7 MB, free: 2.391 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.97e-05/0.2445, allocations: 77.67 kB / 415.8 MB, free: 2.328 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001884/0.2447, allocations: 147 kB / 415.9 MB, free: 2.246 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009217/0.2539, allocations: 10.7 MB / 426.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.526e-05/0.254, allocations: 30.12 kB / 426.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.408e-05/0.254, allocations: 43.58 kB / 426.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/0.2551, allocations: 491.5 kB / 427.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.141e-05/0.2551, allocations: 10.59 kB / 427.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.163e-05/0.2552, allocations: 15.5 kB / 427.2 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.2552, allocations: 13.91 kB / 427.2 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.2562, allocations: 419.7 kB / 427.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004304/0.2605, allocations: 4.574 MB / 432.2 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009853/0.2615, allocations: 480.5 kB / 432.7 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000507/0.262, allocations: 200.7 kB / 432.9 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.459e-05/0.2621, allocations: 4 kB / 432.9 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.2621, allocations: 38.56 kB / 432.9 MB, free: 7.832 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 2.034e-06/0.2621, allocations: 4 kB / 432.9 MB, free: 7.828 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003663/0.2658, allocations: 1.748 MB / 434.7 MB, free: 5.988 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.2659, allocations: 81.11 kB / 434.8 MB, free: 5.891 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01149/0.2774, allocations: 14.09 MB / 448.8 MB, free: 7.785 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.403e-05/0.2774, allocations: 37.64 kB / 448.9 MB, free: 7.742 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004521/0.2779, allocations: 0.5723 MB / 449.5 MB, free: 7.164 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.278, allocations: 145.8 kB / 449.6 MB, free: 7.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.2782, allocations: 94.14 kB / 449.7 MB, free: 6.922 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.392e-05/0.2783, allocations: 322 kB / 450 MB, free: 6.602 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004999/0.2788, allocations: 195 kB / 450.2 MB, free: 6.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005384/0.2793, allocations: 280.6 kB / 450.5 MB, free: 6.105 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009346/0.2802, allocations: 445.6 kB / 450.9 MB, free: 5.637 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2803, allocations: 0 / 450.9 MB, free: 5.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001439/0.2817, allocations: 0.6383 MB / 451.5 MB, free: 4.988 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.2817, allocations: 8 kB / 451.5 MB, free: 4.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.2817, allocations: 0 / 451.5 MB, free: 4.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002/0.282, allocations: 44.7 kB / 451.6 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008361/0.2828, allocations: 211.9 kB / 451.8 MB, free: 4.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001706/0.2845, allocations: 2.011 MB / 453.8 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005391/0.2851, allocations: 48.94 kB / 453.9 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.113e-05/0.2851, allocations: 16 kB / 453.9 MB, free: 2.496 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008579/0.286, allocations: 0.5166 MB / 454.4 MB, free: 1.977 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004863/0.2865, allocations: 267 kB / 454.6 MB, free: 1.684 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008476/0.2873, allocations: 433.6 kB / 455.1 MB, free: 1.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.053e-06/0.2873, allocations: 0 / 455.1 MB, free: 1.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.001277/0.2886, allocations: 0.6176 MB / 455.7 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/0.2886, allocations: 4 kB / 455.7 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.2887, allocations: 4 kB / 455.7 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001232/0.2888, allocations: 40.81 kB / 455.7 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004931/0.2893, allocations: 131.9 kB / 455.9 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002993/0.2896, allocations: 0.5446 MB / 456.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004762/0.2901, allocations: 39.97 kB / 456.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/0.2901, allocations: 20 kB / 456.5 MB, free: 15.79 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.000144/0.2903, allocations: 212.5 kB / 456.7 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.2905, allocations: 134.2 kB / 456.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001191/0.2917, allocations: 0.5294 MB / 457.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.2917, allocations: 4 kB / 457.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.2917, allocations: 4 kB / 457.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.2917, allocations: 3.984 kB / 457.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002334/0.294, allocations: 1.567 MB / 458.9 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.294, allocations: 0 / 458.9 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004889/0.2945, allocations: 112 kB / 459 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.2946, allocations: 0 / 459 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.746e-05/0.2946, allocations: 8 kB / 459 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.2946, allocations: 4 kB / 459 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.2946, allocations: 3.938 kB / 459 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001634/0.2962, allocations: 0.8322 MB / 459.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003778/0.2966, allocations: 311.4 kB / 460.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.2968, allocations: 11.98 kB / 460.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004402/0.2972, allocations: 35.97 kB / 460.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.939e-05/0.2973, allocations: 39.83 kB / 460.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.313e-05/0.2973, allocations: 16.12 kB / 460.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.009179/0.3065, allocations: 11.24 MB / 471.5 MB, free: 0.582 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.21e-07/0.3066, allocations: 0 / 471.5 MB, free: 0.582 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001305/0.3079, allocations: 256 kB / 471.8 MB, free: 340 kB / 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.002858/0.3107, allocations: 1.649 MB / 473.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002121/0.3129, allocations: 0.7825 MB / 474.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3129, allocations: 0 / 474.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004868/0.3134, allocations: 208.1 kB / 474.4 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.001189/0.3146, allocations: 203.4 kB / 474.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06538/0.38, allocations: 46.97 MB / 0.5094 GB, free: 14.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007734/0.3808, allocations: 1.162 MB / 0.5105 GB, free: 12.99 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005817/0.3814, allocations: 194 kB / 0.5107 GB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000558/0.3819, allocations: 442.8 kB / 0.5111 GB, free: 12.37 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3819, allocations: 3.938 kB / 0.5111 GB, free: 12.36 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7911/1.173, allocations: 29.91 MB / 0.5403 GB, free: 14.77 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002765/1.173, allocations: 312.2 kB / 0.5406 GB, free: 14.39 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.273/3.446, allocations: 0 / 0.5406 GB, free: 14.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)