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.009619/0.009619, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.002875/0.002875, allocations: 186.3 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.36/2.36, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Credibility 0.1.0-main/package.mo): time 0.0196/0.0196, allocations: 1.296 MB / 291.8 MB, free: 0.9141 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002349/0.002349, allocations: 61.02 kB / 402.9 MB, free: 9.625 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.1501, allocations: 49.73 MB / 452.6 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Credibility.Examples.SimpleControlledDriveNonlinear.SimpleControlledDrive_original): time 0.01035/0.1605, allocations: 4.215 MB / 456.8 MB, free: 232 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007152/0.1677, allocations: 2.616 MB / 459.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009037/0.1687, allocations: 27.88 kB / 459.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004616/0.1733, allocations: 1.111 MB / 460.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001812/0.1752, allocations: 402 kB / 461 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001596/0.1768, allocations: 319.1 kB / 461.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002087/0.1789, allocations: 0.865 MB / 462.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008231/0.1797, allocations: 242.6 kB / 462.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009059/0.1807, allocations: 374.5 kB / 462.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001127/0.1818, allocations: 462.5 kB / 463.2 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002358/0.1821, allocations: 56 kB / 463.3 MB, free: 9.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004614/0.1825, allocations: 111.9 kB / 463.4 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005708/0.1831, allocations: 340.4 kB / 463.7 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009821/0.1841, allocations: 0.5434 MB / 464.2 MB, free: 8.773 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002684/0.1868, allocations: 1.386 MB / 465.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.1868, allocations: 0 / 465.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1869, allocations: 0 / 465.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.777e-05/0.1869, allocations: 0 / 465.6 MB, free: 7.383 MB / 334.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.005764/0.1927, allocations: 1.65 MB / 467.3 MB, free: 5.676 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.094e-05/0.1928, allocations: 11.89 kB / 467.3 MB, free: 5.664 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001901/0.193, allocations: 82.7 kB / 467.4 MB, free: 5.574 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005514/0.1936, allocations: 142.3 kB / 467.5 MB, free: 5.434 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01765/0.2113, allocations: 10.7 MB / 478.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.761e-05/0.2114, allocations: 41 kB / 478.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002056/0.2116, allocations: 43.92 kB / 478.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001809/0.2134, allocations: 498.3 kB / 478.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.005e-05/0.2135, allocations: 0 / 478.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.267e-05/0.2136, allocations: 19.98 kB / 478.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.469e-05/0.2137, allocations: 19.88 kB / 478.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001819/0.2155, allocations: 419.6 kB / 479.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009475/0.225, allocations: 4.553 MB / 483.8 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001914/0.227, allocations: 481.8 kB / 484.3 MB, free: 4.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008923/0.2279, allocations: 204.7 kB / 484.5 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.757e-05/0.228, allocations: 4.594 kB / 484.5 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.345e-05/0.228, allocations: 34.56 kB / 484.5 MB, free: 4.227 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 3.747e-06/0.2281, allocations: 0 / 484.5 MB, free: 4.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.007221/0.2353, allocations: 1.751 MB / 486.2 MB, free: 2.383 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.963e-05/0.2354, allocations: 81.11 kB / 486.3 MB, free: 2.285 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02363/0.2591, allocations: 14.09 MB / 0.4887 GB, free: 4.172 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001505/0.2593, allocations: 37.7 kB / 0.4887 GB, free: 4.129 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001091/0.2604, allocations: 0.5573 MB / 0.4893 GB, free: 3.566 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003207/0.2608, allocations: 153.8 kB / 0.4894 GB, free: 3.414 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003686/0.2612, allocations: 94.16 kB / 0.4895 GB, free: 3.316 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002027/0.2614, allocations: 325.9 kB / 0.4898 GB, free: 2.992 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008838/0.2623, allocations: 191 kB / 0.49 GB, free: 2.801 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009311/0.2632, allocations: 278.9 kB / 0.4903 GB, free: 2.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001637/0.2649, allocations: 441.6 kB / 0.4907 GB, free: 2.035 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.2649, allocations: 0 / 0.4907 GB, free: 2.035 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00299/0.2679, allocations: 0.6371 MB / 0.4913 GB, free: 1.387 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.249e-05/0.268, allocations: 4 kB / 0.4913 GB, free: 1.383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-05/0.268, allocations: 8.25 kB / 0.4913 GB, free: 1.375 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003207/0.2684, allocations: 44.66 kB / 0.4914 GB, free: 1.328 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001448/0.2698, allocations: 219.7 kB / 0.4916 GB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003622/0.2735, allocations: 2.113 MB / 0.4936 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001242/0.2748, allocations: 52.05 kB / 0.4937 GB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.2749, allocations: 16 kB / 0.4937 GB, free: 14.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001771/0.2767, allocations: 0.5127 MB / 0.4942 GB, free: 14.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008752/0.2776, allocations: 262.9 kB / 0.4944 GB, free: 13.97 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00148/0.2791, allocations: 425.9 kB / 0.4949 GB, free: 13.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.16e-06/0.2791, allocations: 0 / 0.4949 GB, free: 13.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.002726/0.2819, allocations: 0.6253 MB / 0.4955 GB, free: 12.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.807e-05/0.2819, allocations: 6.031 kB / 0.4955 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.282, allocations: 4 kB / 0.4955 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000249/0.2822, allocations: 36.77 kB / 0.4955 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008381/0.2831, allocations: 132 kB / 0.4956 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006332/0.2837, allocations: 0.5368 MB / 0.4962 GB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/0.2848, allocations: 47.95 kB / 0.4962 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.526e-05/0.2849, allocations: 12 kB / 0.4962 GB, free: 12.09 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.0003484/0.2853, allocations: 223.6 kB / 0.4964 GB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007221/0.286, allocations: 134.3 kB / 0.4966 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002553/0.2886, allocations: 0.5332 MB / 0.4971 GB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.2886, allocations: 4 kB / 0.4971 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.2886, allocations: 4 kB / 0.4971 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.2887, allocations: 0 / 0.4971 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006025/0.2947, allocations: 1.567 MB / 0.4986 GB, free: 9.523 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.896e-06/0.2948, allocations: 0 / 0.4986 GB, free: 9.523 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008325/0.2956, allocations: 112 kB / 0.4987 GB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.599e-05/0.2956, allocations: 4 kB / 0.4987 GB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.138e-05/0.2957, allocations: 11.94 kB / 0.4987 GB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.046e-05/0.2957, allocations: 4 kB / 0.4987 GB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.144e-06/0.2957, allocations: 3.938 kB / 0.4987 GB, free: 9.391 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003069/0.2988, allocations: 0.8295 MB / 0.4996 GB, free: 8.527 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001276/0.3001, allocations: 315.4 kB / 0.4999 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004741/0.3006, allocations: 11.94 kB / 0.4999 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009955/0.3016, allocations: 39.95 kB / 0.4999 GB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.3018, allocations: 31.91 kB / 0.4999 GB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.147e-05/0.3019, allocations: 12 kB / 0.4999 GB, free: 8.105 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.01769/0.3196, allocations: 11.24 MB / 0.5109 GB, free: 12.85 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.092e-06/0.3196, allocations: 0 / 0.5109 GB, free: 12.85 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002404/0.3221, allocations: 256 kB / 0.5112 GB, free: 12.6 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.005158/0.3273, allocations: 1.649 MB / 0.5128 GB, free: 11.05 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003855/0.3312, allocations: 0.7898 MB / 0.5136 GB, free: 10.26 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/0.3312, allocations: 0 / 0.5136 GB, free: 10.26 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008557/0.3321, allocations: 207.5 kB / 0.5138 GB, free: 10.06 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002632/0.3348, allocations: 213.9 kB / 0.514 GB, free: 9.859 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4637/0.7985, allocations: 45.68 MB / 0.5586 GB, free: 106.5 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001815/0.8003, allocations: 1.164 MB / 0.5597 GB, free: 105.8 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00149/0.8019, allocations: 195.1 kB / 0.5599 GB, free: 105.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001319/0.8032, allocations: 442.9 kB / 0.5603 GB, free: 105.7 MB / 430.1 MB Notification: Performance of SimCode: time 3.546e-06/0.8033, allocations: 1.781 kB / 0.5603 GB, free: 105.7 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.122/0.9253, allocations: 31.43 MB / 0.591 GB, free: 79.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.43/24.36, allocations: 4.062 kB / 0.591 GB, free: 79.25 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)